Permalink
Browse files

added search.py again

  • Loading branch information...
1 parent 84d1b4f commit 755aaad7993726ce72ea89521d9a3f24ce5bad05 Daria Jung committed Sep 30, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 search.py
View
@@ -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

0 comments on commit 755aaad

Please sign in to comment.