Traceback when updating status on twitter via Tweepy

前端 未结 1 1023
陌清茗
陌清茗 2021-02-14 10:39

I\'ve been trying to post the readings from my Rpi on Twitter using tweepy, but first I wanted to check if tweepy was working properly, but it\'s not.<

相关标签:
1条回答
  • 2021-02-14 11:04

    The first positional argument to the update_status() method is interpreted as the media_ids parameter. You need to explicitly name your status parameter to avoid this:

    api.update_status(status=single_tweet)
    

    This is a recent change in Tweepy and it looks like their documentation hasn't been updated yet to reflect this.

    The different signature has been reported as a bug for the project.

    The bug was fixed in August 2015; version 3.5 or newer of Tweepy once again treat the first positional argument as the status parameter.

    0 讨论(0)
提交回复
热议问题