Tweepy - is it possible to stream exact phrases?

时间:2016-04-15 11:16:25

标签: python tweepy

TheStreamer.filter(languages=["en"], track=['Bruno Mars is lovely'])

Is there a way to get this to track an exact phrase, rather than relevant phrases? For instance,

'Bruno Mars really is a lovely man'

would probably be a result, which I don't want.

1 个答案:

答案 0 :(得分:0)

根据the documentation for track

  

不支持短语的完全匹配(相当于大多数搜索引擎中的引用短语)。

所以简单的答案是否定的,你无法阻止匹配的推文,其中所有单词都以任何顺序出现,并且使用此技术的任何标点符号。您必须在事后过滤掉与您的条件不符的结果。