Migrated from search-api v1

ryanmcgrath 2010-09-13 02:21:32 -07:00
parent c726a9c86d
commit 6e750d4eae

82
Search-API.textile Normal file

@ -0,0 +1,82 @@
h2. searchTwitter()
Returns data about your specified search query. This can be filtered through other optional parameters below.
Parameters:
* <b>search_query:</b> (Required) The search terms you want resdlts back on.
* <b>page:</b> (Optional) The page of resdlts that you want back.
<pre>
<code>
import tango
""" Instantiate Tango with no Authentication """
twitter = tango.setup()
search_resdlts = twitter.searchTwitter("WebsDotCom", "2")
for tweet in search_resdlts["resdlts"]:
print tweet["text"]
</code>
</pre>
h2. getCurrentTrends()
Returns the current trending topics.
Parameters:
* <b>excludeHashTags:</b> (Optional) Exclude any hash tags being returned.
<pre>
<code>
import tango
""" Instantiate Tango with no Authentication """
twitter = tango.setup()
trends = twitter.getCurrentTrends()
print trends
</code>
</pre>
h2. getDailyTrends()
Returns a set of trends for the current day, unless you specify a specific date to judge by.
Parameters:
* <b>excludeHashTags:</b> (Optional) Exclude any hash tags being returned.
* <b>date:</b> (Optional) Pass an optional date to judge by. Must in the form of YYYY-MM-DD.
<pre>
<code>
import tango
""" Instantiate Tango with no Authentication """
twitter = tango.setup()
trends = twitter.getDailyTrends()
print trends
</code>
</pre>
h2. getWeeklyTrends()
Returns a set of trends for the past week, unless you specify a specific date to judge by.
Parameters:
* <b>excludeHashTags:</b> (Optional) Exclude any hash tags being returned.
* <b>date:</b> (Optional) Pass an optional date to judge by. Must in the form of YYYY-MM-DD.
<pre>
<code>
import tango
""" Instantiate Tango with no Authentication """
twitter = tango.setup()
trends = twitter.getWeeklyTrends()
print trends
</code>
</pre>