【问题标题】:How to get a user's activity on a particular page in Twitter?如何在 Twitter 的特定页面上获取用户的活动?
【发布时间】:2019-01-27 18:20:17
【问题描述】:

我正在尝试检查用户是否在特定页面上发了推文或@提及,但找不到任何 api 来实现这一点

https://api.twitter.com/1.1/statuses/user_timeline.json?user_id=<User ID>

- 这个 api 将返回页面的时间线帖子,但在我的情况下,我需要检查用户是否提到了我的页面或发布了关于我的页面的推文

【问题讨论】:

    标签: api twitter request postman


    【解决方案1】:

    如果“页面”是指网页,则可以使用标准搜索 API 搜索推文,q 参数为 from:@user url:example.com/yourpage

    您甚至可以在线尝试: https://twitter.com/search?f=tweets&q=from%3Aosibot%20url%3Aen.jeffprod.com&src=typd
    (这是搜索包含用户 @osibot 发布的域 en.jeffprod.com 的 URL 的推文)

    请注意,使用 API,您只会收到过去 7 天的推文。

    参考:
    https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/standard-operators.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-03
      • 1970-01-01
      • 1970-01-01
      • 2017-12-03
      • 1970-01-01
      相关资源
      最近更新 更多