New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i post video with tweepy? #800
Comments
There's an open pull request (#672) languishing on this, but it's not currently part of the library. You can use the alternate version, though. |
I try it. And have some problem with posting video |
I guess the Tweepy docs are a little vague on updating with media. The Twitter docs provide some hints. It would go like this: media = api.upload_chunked(video)
api.update_status(status="Hello World!", media_ids=[media.media_id]) The |
Thank's) 2016-10-18 5:30 GMT+03:00 Neil Freeman notifications@github.com:
|
@fitnr What version is that in? I'm on 3.5.0 and I get |
It's not in any version, it's an open pull request. The one mentioned above has been superseded by #929. |
Poking back in to confirm that using the branch the PR came from in #929, I was able to get video upload working. Just found the directory pip installed tweepy in, and overwrote it with the /tweepy folder from the video_upload2 branch of https://github.com/conversocial/tweepy/ Note that there's a bug in Twitter's API where a video needs to finish processing before you can successfully tweet with it. Best workaround I found was time.sleep() between the upload and status update calls https://twittercommunity.com/t/why-not-valid-video/72486/3 It would be nice to handle this more elegantly in the library if/when video gets merged in, but a 10 second sleep has been working pretty reliably for me with 30 second mp4 clips. (5 seconds wouldn't always be enough time) |
Hello, i don't find video post in tweepy doc's, is it possible?
And if so, how can i upload video?
The text was updated successfully, but these errors were encountered: