How do i tweet media using tweepy and get requests in python

Viewed 23

This is what i typed and it printed an error that says ValueError: stat: embedded null character in path could anyone help explaining what i did wrong and how should i fix it

media = requests.get(url, stream = True)
api.media_upload(media)
with open(media.jpg, 'wb') as f:
            f.write(media.content)
0 Answers
Related