我知道您可以过滤推文的不同元素 - 我知道了:
twit.stream('statuses/filter', {
track : trcks,
locations : locs
}, etc....
跟踪某些单词和某些位置。但返回的结果是按“trcks”或“locs”过滤的,而不是“trcks”和“locs”。有什么办法吗?或者与此相关的其他逻辑操作?
最佳答案
不,你不能做and
,只有or
... from the docs :
Bounding boxes do not act as filters for other filter parameters. For example track=twitter&locations=-122.75,36.8,-121.75,37.8 would match any tweets containing the term Twitter (even non-geo tweets) OR coming from the San Francisco area.
(强调我的)
关于javascript - 有没有办法在 twitter streaming api 过滤器上进行 AND 操作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16980736/