Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Created May 19, 2011 08:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanksudo/980429 to your computer and use it in GitHub Desktop.
Save hanksudo/980429 to your computer and use it in GitHub Desktop.
Regex : Get Tweet Id by tweet
import re
s = 'https://twitter.com/#!/twitter/status/70943739882913792'
print re.search('/status/(\d+)', s).group(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment