File tree 2 files changed +1402
-2
lines changed
2 files changed +1402
-2
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,15 @@ def main():
60
60
print 'Invalid mode! Try again.'
61
61
62
62
if mode == 'sample' :
63
- stream .sample ()
63
+ stream .sample (languages = 'en' )
64
64
65
65
elif mode == 'filter' :
66
66
follow_list = raw_input ('Users to follow (comma separated): ' ).strip ()
67
67
track_list = raw_input ('Keywords to track (comma seperated): ' ).strip ()
68
68
#csvwriter = csv.writer(open("tweets.csv", "a"))
69
69
70
+ #stream.filter(languages = ["en"])
71
+ #stream.filter(track = ["basketball"])
70
72
71
73
if follow_list :
72
74
follow_list = [u for u in follow_list .split (',' )]
@@ -92,8 +94,10 @@ def main():
92
94
track_list = None
93
95
#print follow_list
94
96
#csvwriter.writerow([follow_list])
97
+ #print(track_list[0])
95
98
for i in xrange (5000 ):
96
- stream .filter (follow_list , track_list )
99
+ stream .filter (track = [track_list [0 ]] ,languages = ["en" ])
100
+ #stream.filter(follow_list,track_list,languages = ["en"])
97
101
#i = i + 1
98
102
99
103
You can’t perform that action at this time.
0 commit comments