我的 Twitter API 查询不会为现有结果返回任何推文

问题描述

连接已建立。需要查找有关名为 Blindsight、作者 Ghuman 和 Johnson 的书的推文。推文存在,我检查了几次拼写和变体。试图收集提及标题和至少一位作者的推文。

最简单的查询如下:

query = 'blindsight Ghuman'
ntweets = 1000

也一一试过:

query = 'blindsight (johnson OR ghuman) -filter:retweets'
query = 'blindsight johnson OR "blindsght ghuman" -filter:retweets'

运行后

tweets = [tweet._json for tweet in tw.Cursor(api.search,q=query,lang="en",tweet_mode='extended').items(ntweets)]
len(tweets)

为每个查询返回 0 条推文。

enter image description here

VS 代码没有返回任何问题。查询结构是否有错误?它确实适用于其他搜索,例如“面霜”。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)