用tweepy跳过一些用户关注者

时间:2018-11-19 08:16:30

标签: python twitter tweepy

我正在使用Python Tweepy获取Twitter用户的关注者并将其存储在我的数据库中。以下是我的代码段:

for follower in tweepy.Cursor(api.followers, screen_name=twitter_user, skip_status=True, count=200).items():
    follower = follower._json
    db.store(follower)

几周后,我想更新twitter_user并再次获取其关注者。有什么办法只能让那些尚未存储在数据库中的关注者获得?我可以提供要跳过的关注者ID列表或类似内容吗?一些Twitter用户拥有数以百万计的关注者,因此在每次更新中重新获得所有关注者可能会非常昂贵。 我将不胜感激

0 个答案:

没有答案