Open GoogleCodeExporter opened 9 years ago
[deleted comment]
I have the same problem on Freebsd 9.0/amd64
Temporary workarround is to define the method yourself
def GetTrendsCurrent(self, exclude=None, woeid="1"):
parameters = {}
if exclude:
parameters['exclude'] = exclude
url = '%(url)s/trends/%(woeid)s.json' % { "url" : self.base_url, "woeid" : woeid }
json = self._FetchUrl(url, parameters=parameters)
data = simplejson.loads(json)
self._CheckForTwitterError(data)
trends = []
for t in data[0]['trends']:
trends.append(twitter.Trend.NewFromJsonDict(t, timestamp = data[0]['created_at']))
return trends
Then override the api's method with your new method
api.GetTrendsCurrent = types.MethodType( GetTrendsCurrent, api )
I have attached a patch
Original comment by Daniel.F...@gmail.com
on 15 May 2013 at 2:36
Attachments:
Original issue reported on code.google.com by
Kris.Mus...@gmail.com
on 28 Apr 2012 at 1:39