tweepy.error.TweepError: [{'code': 50, 'message': 'User not found.'}]

tweepy.error.TweepError: [{'code': 50, 'message': 'User not found.'}]

这是我的代码:

list_users = ["1259850119245152257", "7173232",
          "1049586465477410816", "1337308835468386304", 
          "35801029", "60372896", "2411460916", 
          "191995162", "109498457", "1052635014616166400", 
          "1395018064396124160", "2553929341", "240133655",
          "1391184583698391046"]
giveawaystream.filter(follow=list_users)

我得到的错误是:

tweepy.error.TweepError: [{'code': 50, 'message': 'User not found.'}]

不知道为什么,求助

根据回溯,这发生在 on_statustarget.py 第 52 行的代码中,其中 user = api.get_user(tag) 错误,大概是因为 tag 没有引用给 Twitter API 可以找到的用户。