使用 tweepy 在特定推文之前获取推文的最佳方式
optimum way to get tweets before specific tweet using tweepy
假设推特用户发送了一条推文,其中包含特定推文id
。使用 tweepy
在特定推文 id
之前从同一用户获取 n
推文的最佳方法是什么?
任何帮助将不胜感激。
阅读官方 Twitter 文档:
https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html
并将参数 q
与 from:@user
和 count=10
一起使用,其中 10 是你的 "n" 和 max_id=id
其中 "id" 是你的推文id.
并阅读搜索的官方 tweepy 文档 API。
我们可以为您修复错误,但不会为您编写代码。
假设推特用户发送了一条推文,其中包含特定推文id
。使用 tweepy
在特定推文 id
之前从同一用户获取 n
推文的最佳方法是什么?
任何帮助将不胜感激。
阅读官方 Twitter 文档: https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.html
并将参数 q
与 from:@user
和 count=10
一起使用,其中 10 是你的 "n" 和 max_id=id
其中 "id" 是你的推文id.
并阅读搜索的官方 tweepy 文档 API。
我们可以为您修复错误,但不会为您编写代码。