I have a question about Twitter4j's collection of tweets.

Asked 2 years ago, Updated 2 years ago, 87 views

I'd like to get all tweets for a week for a keyword, but if I specify a date, I can only get tweets from 7:00 to 9:00, which are closer to the specified period.
example

query.setSince("2015-12-06");
query.setUntil("2015-12-08");

If so, the tweets from 7:00 to 9:00 on December 8th will be retrieved

How do I write the code to get a week's worth of tweets?
(I know the 15-minute limit, so I'm going to do it several times.)

java twitter twitter4j

2022-09-30 17:33

1 Answers

https://dev.twitter.com/rest/reference/get/search/tweets
I can only get the amount specified in the count of the parameters, so I think I will follow the old one with max_id in order.


2022-09-30 17:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.