Skip to content

Instantly share code, notes, and snippets.

@jasonrhodes
Forked from scoates/twitter_user_to_image
Created July 5, 2013 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonrhodes/5935860 to your computer and use it in GitHub Desktop.
Save jasonrhodes/5935860 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Usage: $0 username
# e.g.:
# $ ./twitter_user_to_image coates
# https://si0.twimg.com/profile_images/1597362183/me.jpg
curl -sL http://twitter.com/$1 | grep profile_images | head -n1 | perl -p -e's/.*?http/http/;s/".*//;s/_bigger//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment