Skip to main content
 首页 » 编程设计

python之使用 Stream api 跟踪 Twitter 上的特定帐户

2024年10月24日10shihaiming

我正在尝试使用流 api 跟踪 Twitter 上的特定帐户。我明白如何按特定词过滤流,但我不明白如何按特定帐户过滤。

请您参考如下方法:

您需要在请求中使用follow 关键字,如the docs 中所述.你需要通过:

A comma-separated list of user IDs, indicating the users whose Tweets should be delivered on the stream.