danielpronych / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

Add Api.GetUserTimeline "page" argument #117

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The "since" argument from Api.GetUserTimeline should be removed as it is
not valid anymore, according to the API docs, and a "page" argument should
be added instead (as it exists in the API docs).
Also, if possible, create a method that retrieves all of a user's
tweets/statuses.

Original issue reported on code.google.com by amik...@gmail.com on 8 Feb 2010 at 2:48

GoogleCodeExporter commented 8 years ago
Starting at line 2717, this is the function definition with parameters for 
python-twitter. 

  def GetUserTimeline(self,
                      user_id=None,
                      screen_name=None,
                      since_id=None,
                      max_id=None,
                      count=None,
                      include_rts=True,
                      trim_user=None,
                      exclude_replies=None):

Referencing v1.1 of twitters API for statues/user_timeline I noticed that the 
argument "since_id" is valid and "page" is not. It would seem as if the problem 
was fixed inadvertently by moving to v1.1 of the API.

I didnt look into the feature request of returning all tweets of a given user, 
but did find that returning all tweets for a user is capped at, if I remember 
correctly, about 3500 tweets. 

Original comment by jarobins...@gmail.com on 20 Aug 2013 at 5:12