使用相同的凭据订阅多个 Twitter Streams API

发布于 2024-12-11 01:47:35 字数 34 浏览 0 评论 0原文

有没有办法使用相同的凭据打开多个状态流来跟踪多个单词?

Is there any way to open multiple status streams with the same credentials to track several words?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萌吟 2024-12-18 01:47:35

流 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文