Last active
March 14, 2016 03:40
-
-
Save dexterbrylle/f0a8d28a3a2493c13ed2 to your computer and use it in GitHub Desktop.
Get top random wallpapers from 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
curl -s 'http://www.reddit.com/r/wallpapers' \ | |
| tr '"' '\n' | grep imgur | tee "$$.tmp" \ | |
| egrep '^http://i\.imgur\.com/' \ | |
| xargs wget -q -nc | |
egrep '^http://imgur.com/a/' "$$.tmp" \ | |
| xargs -l1 imgur_album_download.sh | |
rm "$$.tmp" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment