Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想知道带有标签#zzzrrererererfdd 的推文数量
而且我找不到如何使用 twitter api 来做到这一点。我不想要用户等所有的东西......
如果有人知道如何在不解析所有结果的情况下做到这一点。
谢谢
比西埃
不幸的是,这对于 Twitter API 是不可能的。
您可以使用search/tweetsAPI 端点查找带有特定主题标签的推文(通过提供主题标签作为q参数),但响应数据不包含任何有关推文计数的元数据。您需要自己循环并计算推文。
search/tweets
q
https://dev.twitter.com/docs/api/1.1/get/search/tweets