example was out of date
This commit is contained in:
parent
0bcc15ecf3
commit
780a82ea51
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue