'why is tweepy posting a media query twice instead of once?
I've written a bot which reposts nft art, however for some tweets it uploads the same media query two times, and this is only visible on the twitter pc website, not on the twitter mobile app. ( @lambda_funct -> to verify).
cmd output to see how many media files are getting saved
From the command line output, it is visible that theres only one file which is getting saved and hence its getting uploaded. The only issue is that the same file is getting uploaded twice.
the code i am using to upload the media files :
media_ids = [api.media_upload(f).media_id_string for f in file_names]
print('total number of media ids : ',len(media_ids))
print(media_ids)
api.update_status(status=status,media_ids=media_ids)
file_names -> is a list which contains the file path to one (or more) media files.
status -> caption//text with tweet
Why is this happening?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
