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)