如何首先从“获取状态/样本”中获取所有样本推文,然后按单词过滤?
我也尝试了链接,但这似乎不起作用: 例如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"));
谢谢
答案 0 :(得分:0)
检查以下内容:stackoverflow.com/questions/16665683/filter-twitter4j-stream