Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- our_plan=false
- curl "https://www.wsiz.wroc.pl/plany-zajec/" > source.txt
- while read line;
- do
- if [ "$line" == "<p>Studia I stopnia niestacjonarne</p>" ]; then
- our_plan=true
- elif [[ "$line" == *"href="* ]] && [ $our_plan == true ]; then
- echo $line | cut -d '"' -f 4 > kurwa.txt
- rm plan-niestacjonarny-*
- while read line; do
- wget -P ~/Desktop $line
- done < kurwa.txt
- rm kurwa.txt
- break
- fi;
- done < source.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement