Created
November 20, 2013 21:40
-
-
Save geoghegan/7571569 to your computer and use it in GitHub Desktop.
Download images from Imgur Sub-Reddit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Downloads the first 100 pages of images from SUBREDDIT | |
for I in `seq 1 100`; do wget -q "http://imgur.com/r/SUBREDDIT/page/$I" -O - | grep '"post"' | grep class | cut -d\" -f 2 | while read ID; do echo "Downloading $ID.jpg"; wget -q -c "http://i.imgur.com/$ID.jpg"; done; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment