bear / python-twitter

A Python wrapper around the Twitter API.
Apache License 2.0
3.41k stars 957 forks source link

Max count for GetUserTimeline from 200 to 3200 #598

Closed ChiefMateStarbuck closed 5 years ago

ChiefMateStarbuck commented 5 years ago

I'm certain I have an idea as to how to increase the GetUserTimeline function from 200 to 3200 tweets. Is there a specific reason as to why it hasn't increased as of yet? If I can get a confirmation, I'll get started coding the solution up.

morenoh149 commented 5 years ago

@ChiefMateStarbuck did you try it?

jeremylow commented 5 years ago

I just added an example of how you'd do this using the GetUserTimeline function and the max_id parameter.

That function only returns 200 tweets per call, so without writing the recursion or loop into the API client and potentially changing the function signature, I think the best way to go about it is to wrap the call in a loop progressively getting earlier and earlier tweets.