[英]Using Twitter4j, how do I filter using the statuses/sample and by a filter query?
How do I first get all the sample tweets from “GET statuses/sample” and then filter by a word? 如何首先从“获取状态/样本”中获取所有样本推文,然后按单词过滤?
I tried chaining as well but that didn't seem to work: eg twitterStream.sample.filter(new FilterQuery("Microsoft") 我也尝试了链接,但是似乎没有用:例如twitterStream.sample.filter(new FilterQuery(“ Microsoft”)
TwitterStreamFactory tf = new TwitterStreamFactory(cb.build());
TwitterStream twitterStream = tf.getInstance();
twitterStream.addListener(listener);
twitterStream.sample():
twitterStream.filter(new FilterQuery("Microsoft"));
Thank you 谢谢
检查一下:stackoverflow.com/questions/16665683/filter-twitter4j-stream
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.