改变Twitter的流过滤器的关键字,而无需重新开放流 [英] Change Twitter stream filter keywords without re-opening stream

查看:125
本文介绍了改变Twitter的流过滤器的关键字,而无需重新开放流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能改变一个Twitter流过滤的关键字,而它的开放?

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

我期待遵循 http://dev.twitter.com/pages/streaming_api pre-推出清单,创建连接的数量降到最低,避免关闭并重新打开每个关键字我想跟着改变时间的流里。

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.

推荐答案

您不能改变过滤器predicate无需重新连接,但流式API概念页都有说明的如何改变predicates ,并使得用户体验尽可能顺利地

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

这篇关于改变Twitter的流过滤器的关键字,而无需重新开放流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆