Recipes/Python requests
Extract video data with Python
Extract video data with Python: a requests example that submits a batch of videos, polls the job and saves each video's structured rows.
The code
Notes
One id covers the whole list, so there is one thing to poll however many videos went in. While it runs, counts on the same response shows how many have finished. Failures are logged instead of retried, since most job errors will not succeed a second time; only captions_fetch_failed and internal_error are worth resubmitting.
Was this page useful?Tell us what was missing