我想回复那些使用Tweepy向我发送特定关键字的用户(仅在他们发推文时),但我不知道如何继续讨论它,我见过的大多数例子都使用了api.search在这种情况下不方便:
def tweetIt():
text = tweet.status
sn = tweet.user.screen_name
reply_to = tweet.in_reply_to_screen_name
if reply_to == "myuser":
if text == "@myuser keyword":
# reply to user with an image from a specific folder
tweetIt()
time.sleep(90) # to keep it running