Created
March 19, 2010 02:27
-
-
Save tobbez/337157 to your computer and use it in GitHub Desktop.
dump images from knowyourmeme
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
# one-liner to download all images for a meme from knowyourmeme | |
# "i dare you to try", he said. therefore i bestow upon thee: | |
m="polandball"; (curl -s http://knowyourmeme.com/memes/${m} | egrep -o "/memes/${m}\?content=true&photo_page=[0-9]+" && echo "/memes/${m}") | sort | uniq | sed "s/amp;//" | xargs -I URLPATH curl http://knowyourmeme.comURLPATH | sort | uniq | egrep -o "/photos/[0-9]+" | sort | uniq | xargs -I URLPATH curl -s http://knowyourmeme.comURLPATH | grep 'class="original"' | egrep -o "http://cdn[0-9]+.*[0-9]+" | xargs -I URL wget URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment