Twitter4J: Get all statuses from Twitter account

后端 未结 3 982
长发绾君心
长发绾君心 2021-01-13 20:24

I\'m using Twitter4J API for my application. I want to get all the statuses I had on my Twitter account (or if not all, most of them). Is this possible? Currently I am using

相关标签:
3条回答
  • 2021-01-13 20:33
    // retrieves the first page's 200 tweets
    getUserTimeline(new Paging(1, 200));
    
    0 讨论(0)
  • 2021-01-13 20:38

    Twitter doesn't allow searching for all the tweets (they are expired), so you'll only be able to query as far back as Twitter allows.

    From Twitter

    We also restrict the size of the search index by placing a date limit on the updates we allow you to search. This limit is currently around 1.5 weeks but is dynamic and subject to shrink as the number of tweets per day continues to grow.

    0 讨论(0)
  • 2021-01-13 20:55

    A similar question has been asked and answered here.

    Get tweets of a public twitter profile

    I would suggest that this question is closed.

    0 讨论(0)
提交回复
热议问题