使用相同的凭据订阅多个 Twitter Streams API
有没有办法使用相同的凭据打开多个状态流来跟踪多个单词?
Is there any way to open multiple status streams with the same credentials to track several words?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
流 API 可以打开的流数量非常有限。我们的想法是让一个流为您提供所需的所有数据。
要跟踪多个单词,只需提供逗号分隔的单词列表即可。它们都将在同一流中交付。要更改单词,您需要使用新单词列表打开一个新流并关闭旧流。
以下是有关 track 参数的文档: https://dev.twitter.com/docs /streaming-api/methods#track
The streaming API is very limited in the number of streams you can open. The idea is to have a single stream feeding you with all the data you need.
To track more than one word, simply provide a comma delimited list of words. They will all be delivered in the same stream. To change words, you will need to open a new stream with the new list of words and close the old stream.
Here's the docs on the track parameter: https://dev.twitter.com/docs/streaming-api/methods#track