# HG changeset patch # User dclinton@b35c0ba3-1128-0410-9219-0b39014e361d # Date 1245514395 0 # Branch dclinton # Node ID 9fabfd8ae1e2152b333ac0159a9137a1c35bfea4 # Parent c867b935f947c1ce6f815e6706d807058b467a33 Use the .json URL not the .xml URL for GetUserTimeline alt params. Fixes issue 77. diff -r c867b935f947c1ce6f815e6706d807058b467a33 -r 9fabfd8ae1e2152b333ac0159a9137a1c35bfea4 twitter.py --- a/twitter.py Thu Jun 11 16:23:12 2009 +0000 +++ b/twitter.py Sat Jun 20 16:13:15 2009 +0000 @@ -452,9 +452,9 @@ if id: url = 'http://twitter.com/statuses/user_timeline/%s.json' % id elif user_id: - url = 'http://twitter.com/statuses/user_timeline.xml?user_id=%d' % user_id + url = 'http://twitter.com/statuses/user_timeline.json?user_id=%d' % user_id elif screen_name: - url = ('http://twitter.com/statuses/user_timeline.xml?screen_name=%s' % + url = ('http://twitter.com/statuses/user_timeline.json?screen_name=%s' % screen_name) elif not self._username: raise TwitterError("User must be specified if API is not authenticated.")