【问题标题】:Using Twitter4j, how do I filter using the statuses/sample and by a filter query?使用 Twitter4j,我如何使用状态/样本和过滤器查询进行过滤?
【发布时间】:2019-01-24 21:36:21
【问题描述】:

如何首先从“GET statuses/sample”中获取所有示例推文,然后按单词过滤?

我也尝试过链接,但这似乎不起作用: 例如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"));

谢谢

【问题讨论】:

    标签: java twitter twitter4j


    【解决方案1】:

    检查这个:stackoverflow.com/questions/16665683/filter-twitter4j-stream

    【讨论】:

      猜你喜欢
      • 2015-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-22
      • 1970-01-01
      • 2020-02-15
      • 2020-11-03
      相关资源
      最近更新 更多