【发布时间】:2017-12-26 15:49:25
【问题描述】:
这是我在 tweepy 中的代码的示例:
api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True, compression=True)
random = random.randint(1,1000)
for tweet in tweepy.Cursor(api.search, q='twitter', lang='en', result_type='recent').items():
if not (tweet.retweeted) and 'RT @' not in (tweet.text):
api.update_status('@' + tweet.user.screen_name + ' ' + str(random) + ': test', in_reply_to_status_id = tweet.id_str)
print('Replied to the tweet!')
sleep (900)
代码有效,但由于某种原因,在运行代码一段时间后,我的推文从搜索中消失了。在它从搜索中消失之前,它从我回复的推文中消失了。我真的不知道为什么会这样。
【问题讨论】:
-
丢失是什么意思
-
我在另一个 Twitter 帐户上进行了隐身,然后尝试搜索该推文,但在 30 分钟或更长时间后它没有出现在搜索中。
-
你看到用户时间线上的推文了吗? (您为其应用推文的用户的时间线)