Tuesday, 27 August 2013

Twitter Stream API to get 1000 users tweets

Twitter Stream API to get 1000 users tweets

I am using twitter stream API to get tweets from user. I have list of user
Id How would i add this as input in the TwitterStream API. I have analyzed
the following sample but no idea to add user id to get user tweets
https://github.com/yusuke/twitter4j/blob/master/twitter4j-examples/src/main/java/twitter4j/examples/stream/PrintUserStream.java
How would i add similar to this
FilterQuery fq = new FilterQuery();
String keywords[] = {"France", "Germany"};
fq.track(keywords);
twitterStream.addListener(listener);
twitterStream.filter(fq);

No comments:

Post a Comment