Twitter 流媒体 API - 获取评论 [英] Twitter streaming api - get comments

查看:36
本文介绍了Twitter 流媒体 API - 获取评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过其主题标签获取与特定主题相关的所有推文和评论.我能够使用流 API 获取带有该主题标签的每条新推文,但我的问题是,是否有可能以某种方式获取对这些推文的评论?它不需要是流式 API,但在 REST API 中我也找不到.

I am trying to get all tweets and comments related to specific topic by it's hashtag. I am able to use streaming API to get every new tweet with that hashtag, but my question is, if it is somehow possible to fetch also comments to those tweets? It doesn't need to be streaming API, but in REST API I can't find it as well.

推荐答案

Twitter 当前不允许您获得对特定推文的回复.您能做的最好的事情是搜索 @username 并按 in_reply_to 过滤.

Twitter currently doesn't allow you to get replies to a specific tweet. The best you can do is a search for @username and filter that by in_reply_to.

这篇关于Twitter 流媒体 API - 获取评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆