Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- url="https://www.gocomics.com/peanuts"
- read -p "Enter Start Date: " d
- d=$(date +%Y/%m/%d -d "$d")
- read -p "Enter End Date: " end
- end=$(date +%Y/%m/%d -d "$end")
- while [ "$d" != "$end" ];
- do
- echo $d
- img="$(wget -qO- "$url/$d"|grep "og:image"|head -n1|cut -d\" -f4)"
- wget -c "$img"
- d=$(date +%Y/%m/%d -d "$d + 1 day")
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement