From 780a82ea518e5517a71c0074b40436d38046fbc4 Mon Sep 17 00:00:00 2001 From: Martin Sykora Date: Fri, 20 Jul 2012 09:20:08 +0200 Subject: [PATCH] example was out of date --- core_examples/current_trends.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core_examples/current_trends.py b/core_examples/current_trends.py index 53f64f1..e8f2ff2 100644 --- a/core_examples/current_trends.py +++ b/core_examples/current_trends.py @@ -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