We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi folks, I'm getting a list of tweets result of a "Query", but I would like get only 8 tweets...At the moment I'm getting much more (I guess 100). I have tried this code, but It doesn't working... Another question is, The tweets that Im getting with this query, are the last tweets based in...???? I dont understand what is the criteria... Thanks in advance...
void getSearchTweets() {
//float x=random(width);
//float y=random(height);
try {
query = new Query("love");
query.setCount(8);
QueryResult result = twitter.search(query);
//println(query.getCount());
for (Status status : result.getTweets()) {
imgTemp=status.getUser().getBiggerProfileImageURL();
img = loadImage(imgTemp, "png");
pic=new circleMask(60,img,random(width), random(height));
pic.display();
}
}
catch (TwitterException e) {
println("Search tweets: " + e);
}
}