3 This python sample demonstrates the following process of uploading large video files asynchronously with the Twitter API.
5 1. **INIT** media upload.
6 2. **APPEND** chunked data.
7 3. **FINALIZE** media uploaded.
8 4. Check **STATUS** of video processing.
9 5. Tweeting with attached video.
11 Large video files are longer than 30 second up to 140 seconds and/or a file size larger than 15 megabytes up to 512 megabytes.
17 1. Install requirements:
20 $ pip install requirements.txt
23 2. Fill in your consumer keys and access tokens:
26 CONSUMER_KEY = 'your-consumer-key'
27 CONSUMER_SECRET = 'your-consumer-secret'
28 ACCESS_TOKEN = 'your-access-token'
29 ACCESS_TOKEN_SECRET = 'your-access-secret'
35 $ python async-upload.py