We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e731577 + 353ac4d commit a36af92Copy full SHA for a36af92
Examples/loklak-tweets-search.py
@@ -0,0 +1,13 @@
1
+from loklak import Loklak
2
+import json
3
+
4
+myTweets = Loklak()
5
6
+movieName = raw_input("What movie would you like to search recent tweets for? ") #asks for what user would like to search for
7
8
+index = 1
9
+for tweet in myTweets.search(movieName)["statuses"]: #searches movie and finds "statuses" where "text" is under
10
+ print '%d%s' %(index, '.') #prints the tweet number
11
+ print tweet["text"] + "\n" #prints the text of the tweet and makes a new line
12
+ index+=1 #increments index
13
0 commit comments