Permalink
Browse files

Merge branch 'master' of github.com:dariajung/hackny2012-f

  • Loading branch information...
2 parents 8d87caf + 3758e63 commit 7c140ea01bd2f4c27fd50f1753d249638157cdb8 Daria Jung committed Sep 30, 2012
Showing with 21 additions and 8 deletions.
  1. +21 −8 search.py
View
29 search.py
@@ -1,4 +1,4 @@
-from temboo.Library.Twitter.Search.SearchFilter import SearchFilter
+from temboo.Library.Twitter.Search import Query
from temboo.core.session import TembooSession
session = TembooSession(
@@ -7,10 +7,23 @@
"d7be0cc1-7cdc-42c9-8"
)
-twitterSearch = SearchFilter(session)
-inputs = twitterSearch.new_input_set()
-inputs.set_SearchString("Justin Bieber have my babies")
-inputs.set_Filter("Costello")
-inputs.set_ResultsPerPage(10)
-results = twitterSearch.execute_with_results(inputs)
-print results.get_Response().encode('utf-8')
+# Instantiate the choreography, using a previously instantiated TembooSession object, eg:
+# session = TembooSession('ACCOUNT_NAME', 'APP_KEY_NAME', 'APP_KEY_VALUE')
+choreo = Query(session)
+
+# Get an InputSet object for the choreo
+inputs = choreo.new_input_set()
+
+inputs.set_SinceId(249672500605222913)
+
+#blahblahblah
+
+# Set inputs
+inputs.set_Query("Justin Bieber have my babies")
+
+# Execute choreo
+results = choreo.execute_with_results(inputs)
+
+str = results.get_Response().encode('utf-8')
+
+print str.count('statuses')

0 comments on commit 7c140ea

Please sign in to comment.