Migrated from search-api v5
parent
f39eab80cb
commit
f965b51534
1 changed files with 12 additions and 12 deletions
|
|
@ -13,14 +13,14 @@ Parameters:
|
|||
|
||||
h3. A note about the above parameters
|
||||
|
||||
If you take a moment to read through Twitter's "Search API Docs":http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search, you'll notice that the above params are pretty much word for word. This is because Tango is built to be flexible with API changes on Twitter's end; with that noted, it's important to be familiar with the Twitter API as a whole. <b>You should really read the Twitter Search API Docs if you choose to use this method.</b>
|
||||
If you take a moment to read through Twitter's "Search API Docs":http://apiwiki.twitter.com/Twitter-Search-API-Method%3A-search, you'll notice that the above params are pretty much word for word. This is because Twython is built to be flexible with API changes on Twitter's end; with that noted, it's important to be familiar with the Twitter API as a whole. <b>You should really read the Twitter Search API Docs if you choose to use this method.</b>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
import twython
|
||||
|
||||
""" Instantiate Tango with no Authentication """
|
||||
twitter = tango.setup()
|
||||
twitter = twython.setup()
|
||||
search_results = twitter.searchTwitter("WebsDotCom", rpp="50")
|
||||
|
||||
for tweet in search_results["results"]:
|
||||
|
|
@ -38,10 +38,10 @@ Parameters:
|
|||
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
import twython
|
||||
|
||||
""" Instantiate Tango with no Authentication """
|
||||
twitter = tango.setup()
|
||||
""" Instantiate Twython with no Authentication """
|
||||
twitter = twython.setup()
|
||||
trends = twitter.getCurrentTrends()
|
||||
|
||||
print trends
|
||||
|
|
@ -59,10 +59,10 @@ Parameters:
|
|||
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
import twython
|
||||
|
||||
""" Instantiate Tango with no Authentication """
|
||||
twitter = tango.setup()
|
||||
""" Instantiate Twython with no Authentication """
|
||||
twitter = twython.setup()
|
||||
trends = twitter.getDailyTrends()
|
||||
|
||||
print trends
|
||||
|
|
@ -80,10 +80,10 @@ Parameters:
|
|||
|
||||
<pre>
|
||||
<code>
|
||||
import tango
|
||||
import twython
|
||||
|
||||
""" Instantiate Tango with no Authentication """
|
||||
twitter = tango.setup()
|
||||
""" Instantiate Twython with no Authentication """
|
||||
twitter = twython.setup()
|
||||
trends = twitter.getWeeklyTrends()
|
||||
|
||||
print trends
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue