Twitter4J: Get all statuses from a Twitter account

I am using the Twitter4J API for my application. I want to get all the statuses that I had on my Twitter account (or, if not all, most of them). Is it possible? I am currently using getUserTimeline (), but this only returns the last 20 ...

Thank you very much and welcome

Krt_Malta p>

+4
source share
3 answers
// retrieves the first page 200 tweets getUserTimeline(new Paging(1, 200)); 
+11
source

Twitter does not allow you to search all tweets (they have expired), so you can only request on Twitter.

From Twitter

We also limit the size of the search index by setting a date limit for the updates that we allow you to search. This limit is currently around 1.5 weeks, but is dynamic and may decrease as the number of tweets per day continues to grow.

+1
source

A similar question was asked and answered here.

Get Twitter Public Profile Tweets

I would suggest that this question is closed.

0
source

Source: https://habr.com/ru/post/1304189/


All Articles