无需重新打开流即可更改 Twitter 流过滤器关键字 [英] Change Twitter stream filter keywords without re-opening stream

查看:27
本文介绍了无需重新打开流即可更改 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 启动前检查清单,创建最少数量的连接",避免每次我希望关注的关键字发生变化时关闭和重新打开流.

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 概念页面有说明 如何改变谓词并使用户体验尽可能流畅

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天全站免登陆