Expanded getUserTimeline() API support
This commit is contained in:
parent
777ac8e6e4
commit
0b29bfbbae
1 changed files with 6 additions and 0 deletions
6
tango.py
6
tango.py
|
|
@ -14,6 +14,12 @@ class tango:
|
|||
userTimelineURL = "http://twitter.com/statuses/user_timeline/" + self.twitter_user + ".json"
|
||||
if kwargs["count"] is not None:
|
||||
userTimelineURL += "?count=" + kwargs["count"]
|
||||
if kwargs["since_id"] is not None:
|
||||
userTimelineURL += "?since_id=" + kwargs["since_id"]
|
||||
if kwargs["max_id"] is not None:
|
||||
userTimelineURL += "?max_id=" + kwargs["max_id"]
|
||||
if kwargs["page"] is not None:
|
||||
userTimelineURL += "?page=" + kwargs["page"]
|
||||
userTimeline = simplejson.load(urllib2.urlopen(userTimelineURL))
|
||||
formattedTimeline = []
|
||||
for tweet in userTimeline:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue