Using Tweepy search for instance:
使用Tweepy搜索实例:
for match in tweepy.Cursor(api.search, q=('from:realdonaldtrump michaelcohen212'), include_entities=True, count=10, wait_on_rate_limit=True).items():
print(match.text)
yields no results but when i search here i get results (although they are from 2015):
没有结果,但是当我在这里搜索时,我得到的结果(尽管它们来自2015年):
https://twitter.com/search?f=tweets&q=from%3Arealdonaldtrump%20michaelcohen212&src=typd
I tried to filter using Tweepy search operators like since
and until
for that specific range and it still yields nothing
我试图使用Tweepy搜索运算符来过滤,直到该特定范围,它仍然没有产生任何结果
Any ideas?
有任何想法吗?
1 个解决方案
#1
0
It is because of a restriction from Search API.
这是因为Search API的限制。
"The Twitter Search API searches against a sampling of recent Tweets published in the past 7 days."
“Twitter Search API搜索过去7天发布的最近推文的样本。”
https://developer.twitter.com/en/docs/tweets/search/overview/basic-search
https://developer.twitter.com/en/docs/tweets/search/overview/basic-search
#1
0
It is because of a restriction from Search API.
这是因为Search API的限制。
"The Twitter Search API searches against a sampling of recent Tweets published in the past 7 days."
“Twitter Search API搜索过去7天发布的最近推文的样本。”
https://developer.twitter.com/en/docs/tweets/search/overview/basic-search
https://developer.twitter.com/en/docs/tweets/search/overview/basic-search