example was out of date

This commit is contained in:
Martin Sykora 2012-07-20 09:20:08 +02:00
parent 0bcc15ecf3
commit 780a82ea51

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