This commit is contained in:
Martin Sykora 2012-07-20 00:20:40 -07:00
commit e130a8d0b3

View file

@ -2,6 +2,10 @@ from twython import Twython
""" Instantiate Twython with no Authentication """
twitter = Twython()
trends = twitter.getCurrentTrends()
# twitter has now depreciated the API endpoint att getCurrentTrends()
# instead use the trendsByLocation() method - see https://dev.twitter.com/docs/api/1/get/trends/current
trends = twitter.trendsByLocation()
print trends