Change Twitter stream filter keywords without re-o

2019-05-03 09:42发布

Is it possible to change the filter keywords on a Twitter stream while it's open?

I'm looking to follow the second point of the http://dev.twitter.com/pages/streaming_api pre-launch checklist, "Creating the minimal number of connections", and avoid closing and re-opening the stream each time the keywords I wish to follow change.

标签: api twitter
2条回答
仙女界的扛把子
2楼-- · 2019-05-03 10:16

Official documentation says you cannot update the filter predicates; http://dev.twitter.com/pages/streaming_api_concepts#updating-filter-predicates

查看更多
贪生不怕死
3楼-- · 2019-05-03 10:28

you can't change the filter predicate without reconnecting, but the streaming-api concepts page has instructions how change the predicates and making the user experience as smooth as possible

查看更多
登录 后发表回答