Skip to content

Instantly share code, notes, and snippets.

@ihabunek
Created February 27, 2013 12:41
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 ihabunek/5047632 to your computer and use it in GitHub Desktop.
Save ihabunek/5047632 to your computer and use it in GitHub Desktop.
@gperetin on Django

For a person who prefers Flask so much, @gperetin sure does talk a lot about Django.

import urllib2
import re

url = "https://api.twitter.com/1/statuses/user_timeline.json?screen_name=gperetin&count=200"
data = urllib2.urlopen(url).read()

print len(re.findall('django', data, re.I))
print len(re.findall('flask', data, re.I))

Yields:

20
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment