You are reading a single comment by @rhb and its replies. Click here to read the full conversation.
  • @Stonehedge here's the relevant bits of code. Might not mean the same out of context of the rest of the code?

    tweetStr = "blah blah blah" 
    apiKey = '-'
    apiSecret = '-'
    accessToken = '-'
    accessTokenSecret = '-' 
    api = Twython(apiKey,apiSecret,accessToken,acc­essTokenSecret) 
    video = open('5into15.mp4', 'rb')
    response = api.upload_video(media=video, media_type='video/mp4')
    api.update_status(status=tweetStr, media_ids=[response['media_id']])

    It works/ fails intermittently.


Avatar for rhb @rhb started