Skip to content

Instantly share code, notes, and snippets.

@dacort
Created February 3, 2009 00:05
Show Gist options
  • Save dacort/57190 to your computer and use it in GitHub Desktop.
Save dacort/57190 to your computer and use it in GitHub Desktop.
curl -s http://twitter.com/statuses/user_timeline/dacort.xml?count=750 \
| grep "<text>" | grep twitpic \
| sed -n 's/.*\(twitpic.com\/[^ < ]\{4,5\}\).*/\1/gp' \
| xargs curl -s | grep -E '(id="pic")|(Posted on)' \
| sed 's/src="\//src="http:\/\/twitpic.com\//' \
| sed 's/.*\(Posted on .*\)<.*/<br \/><br \/>\1<br \/>/g' \
| awk ' { line[NR] = $0 } END { for (i=NR;i>0;i-- ) print line[i] }' \
>> dacort.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment