From 5a7a0ebcc9e11d7b45376fa85a6094d4e8397fb4 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Wed, 6 May 2009 02:20:50 -0400 Subject: [PATCH] Renaming a function to make room for other trending search stuff --- tango.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tango.py b/tango.py index 763049e..301dd02 100644 --- a/tango.py +++ b/tango.py @@ -9,7 +9,7 @@ class tango: # Authenticate here? self.twitter_user = twitter_user - def getUserTimeline(self, optional_count): + def getUserTimeline(self, count, page, since_id): userTimelineURL = "http://twitter.com/statuses/user_timeline/" + self.twitter_user + ".json" + ("" if optional_count is None else "?count=" + optional_count) userTimeline = simplejson.load(urllib2.urlopen(userTimelineURL)) formattedTimeline = [] @@ -25,7 +25,7 @@ class tango: formattedTimeline.append(tweet['text']) return formattedTimeline - def getTrendingTopics(self): + def getCurrentTrends(self): # Returns an array of dictionary items containing the current trends trendingTopicsURL = "http://search.twitter.com/trends.json" trendingTopics = simplejson.load(urllib.urlopen(trendingTopicsURL))