When I add since
& until
restrictions to my Query
, nothing returns as result despite there are many tweets during this duration for my keyword. The result is still same if I do not use the since
restriction.
How can I retrieve tweets in a time range using twitter4j?
Here is a snippet from my implementation:
Query query = new Query();
query.setQuery(topic + " +exclude:retweets");
query.setCount(100);
query.setLang("en");
query.setSince("2015-08-29");
query.setUntil("2015-11-29");
QueryResult result = twitter.search(query);
List < Status > tweets = result.getTweets();
ps. I am using the latest stable version of twitter4j which is 4.0.4.