【问题标题】:Getting tweet replies to a particular tweet from the tweet author获取推文作者对特定推文的推文回复
【发布时间】:2021-06-24 10:58:58
【问题描述】:

我正在尝试获取仅来自该推文作者的特定推文/TwitterThread 的推文回复。到目前为止,我可以使用这样的搜索端点来获取特定推文的所有回复:

curl --request GET --url 'https://api.twitter.com/2/tweets/search/recent?query=conversation_id:1373848915464785920&tweet.fields=in_reply_to_user_id,author_id,created_at,conversation_id' --header 'Authorization: Bearer $BEARER_TOKEN' 

上面的代码给了我所有的答复。我想要的只是原作者的回复。

作为参考,这是上面代码的文档链接:https://developer.twitter.com/en/docs/twitter-api/conversation-id

【问题讨论】:

    标签: api curl twitter tweets


    【解决方案1】:

    假设用户名是 mark,您可以使用“(from:mark)”在查询中指定作者。说以下是查询:“apples -filter:replies” 然后,以下将是包含推文作者的查询:“apples (from:mark) -filter:replies”

    【讨论】:

      猜你喜欢
      • 2016-10-20
      • 2015-07-07
      • 1970-01-01
      • 2018-02-25
      • 2021-07-25
      • 1970-01-01
      • 2017-04-11
      • 1970-01-01
      • 2011-02-11
      相关资源
      最近更新 更多