Created
December 14, 2011 17:53
-
-
Save thinkerbot/1477669 to your computer and use it in GitHub Desktop.
HTTP status cats
This file contains hidden or 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
STATUS_CAT_URL="http://www.flickr.com/photos/girliemac/sets/72157628409467125" | |
curl "$STATUS_CAT_URL" | | |
grep 'class="photo_container' | | |
sed -e 's/.*\(src.*\)/\1/' -e 's/class.*//' -e 's/[[:alnum:]]\{1,\}=//g' -e 's/ \{1,\}/ /g' | | |
tr -d '"' | | |
cut -d ' ' -f 1,4 | | |
while read url code | |
do printf "$code $url\n" | |
done | | |
sed -e 's/_[ms]\.jpg$/\.jpg/' | | |
sort -u | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment