How can I use nextpagequery to retrieve more than 100 tweets on search API?
in
Contributed Library Questions
•
3 months ago
I am using twitter4j and I have already implemented the Search. Now I can retrieve only 100 results, how can I add pagination to retrieve more than this?
I use the following code:
- try{
- QueryResult result = twitterSearch.search(new Query().geoCode(new GeoLocation(lat,lon), res, resUnit).query(queryString).count(100));
- for (Status status : result.getTweets()) {
- SearchResults.add(status);
- }
- }catch (TwitterException te){
- print(te);
- }
1