Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added search.py again

  • Loading branch information...
commit 755aaad7993726ce72ea89521d9a3f24ce5bad05 1 parent 84d1b4f
Daria Jung authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 search.py
View
17 search.py
@@ -0,0 +1,17 @@
+from temboo.Library.Twitter.Search import Query
+from temboo.core.session import TembooSession
+
+def searching(string):
+ session = TembooSession(
+ "alexandraorth",
+ "myFirstApp",
+ "d7be0cc1-7cdc-42c9-8"
+ )
+ choreo = Query(session)
+ inputs = choreo.new_input_set()
+ inputs.set_SinceId(249672500605222913)
+ inputs.set_Query(string+" have my babies")
+ results = choreo.execute_with_results(inputs)
+ str = results.get_Response().encode('utf-8')
+ num = str.count('statuses')
+ return num
Please sign in to comment.
Something went wrong with that request. Please try again.