如何解决清除 Tweepy 中的所有提及
我正在使用 tweepy 创建一个 twitter 机器人。我面临的问题是提及时间线没有清除旧提及并且机器人仍然回复这些用户
import tweepy
import os
import requests
from dotenv import load_dotenv
auth = tweepy.OAuthHandler(consumer_key,consumer_secret)
auth.set_access_token(acess_token,acess_secret)
api = tweepy.API(auth)
mentions = api.mentions_timeline(count=20)
for mention in mentions:
print(mention.user.name)
api.mentions_timeline().clear() //<=I try to clear the mentions here
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。