Migrated from search-api v6

ryanmcgrath 2010-09-13 02:21:59 -07:00
parent 0ba9cbc93f
commit f2167349d8

@ -20,7 +20,7 @@ If you take a moment to read through Twitter's "Search API Docs":http://apiwiki.
import twython import twython
""" Instantiate Tango with no Authentication """ """ Instantiate Tango with no Authentication """
twitter = twython.setup() twitter = twython.core.setup()
search_results = twitter.searchTwitter("WebsDotCom", rpp="50") search_results = twitter.searchTwitter("WebsDotCom", rpp="50")
for tweet in search_results["results"]: for tweet in search_results["results"]:
@ -41,7 +41,7 @@ Parameters:
import twython import twython
""" Instantiate Twython with no Authentication """ """ Instantiate Twython with no Authentication """
twitter = twython.setup() twitter = twython.core.setup()
trends = twitter.getCurrentTrends() trends = twitter.getCurrentTrends()
print trends print trends
@ -62,7 +62,7 @@ Parameters:
import twython import twython
""" Instantiate Twython with no Authentication """ """ Instantiate Twython with no Authentication """
twitter = twython.setup() twitter = twython.core.setup()
trends = twitter.getDailyTrends() trends = twitter.getDailyTrends()
print trends print trends
@ -83,7 +83,7 @@ Parameters:
import twython import twython
""" Instantiate Twython with no Authentication """ """ Instantiate Twython with no Authentication """
twitter = twython.setup() twitter = twython.core.setup()
trends = twitter.getWeeklyTrends() trends = twitter.getWeeklyTrends()
print trends print trends