Permalink
Browse files

Cleaned up, added usage comment

  • Loading branch information...
1 parent 67f2671 commit 4c2822da6f66eef5547610df87f450f70468d8a5 @diffra committed Feb 1, 2012
Showing with 3 additions and 8 deletions.
  1. +3 −8 drunktweet.py
View
@@ -1,6 +1,8 @@
# drunktweet.py
'''
-Print out possible drunk tweets from the city of Chicago.
+Print out possible drunk tweets from anywhere in the world.
+
+Usage: ./drunktweet.py London, UK
'''
import regex
@@ -46,10 +48,3 @@ def geosearch(query):
words = status.split()
if any(pat.match(word) for word in words):
print(tweet['user']['screen_name'], status)
-
-# Print possible candidates
-#for line in r.iter_lines():
-# if line:
-# tweet = json.loads(line)
-# status = tweet.get('text',u'')
-# print(tweet['user']['screen_name'], status)

0 comments on commit 4c2822d

Please sign in to comment.