Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Latest commit

 

History

History
13 lines (9 loc) · 1.11 KB

README.md

File metadata and controls

13 lines (9 loc) · 1.11 KB

YouTube Community Contributed Captions Exporter

The YouTube Community-Contributed captions editor is now offline as of October 28, 2020.

This archiving project is now complete, and we are working on sorting and finalizing the data. Thank you to everyone who contributed!

Export YouTube community-contributed captioning drafts to SBV files.

Setup

Install the requirements in the requirements.txt file (pip install -r requirements.txt). Because the captioning editor is only available to logged-in users, you must specify the values of three session cookies for any Google account (HSID, SSID, and SID). You can get these cookie values by opening the developer tools on any youtube.com webpage, going to the "Application" (Chrome) or "Storage" (Firefox) tab, selecting "Cookies", and copying the required values.

Usage

Simply run python3 ytcc-exporter.py followed by a list of space-separated YouTube video IDs, and all community-contributed captioning drafts in all languages will be exported.

If a channel (or user) url is provided, captions for up to 100 of the last videos are retrieved.