archiving community contributions on YouTube: unpublished captions, title and description translations and caption credits
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
tech234a d125887b58 Allow specifying TRACKER_USERNAME in config.json 3 年前
.gitignore Update gitignore 3 年前
README.md Update README.md 3 年前
config.json Allow specifying TRACKER_USERNAME in config.json 3 年前
discovery.py Reduce exceptions, limit threads 3 年前
export.py Retry on account error in subtitle retrieval 3 年前
requirements.txt Implement TRACKER_USERNAME support 3 年前
tracker.py Allow specifying TRACKER_USERNAME in config.json 3 年前
worker.py Validate settings 3 年前

README.md

YouTube Community Contributions Archiving Worker

Export YouTube community-contributed captioning drafts to SBV files. Export YouTube community-contributed titles and descriptions to JSON. Export published caption credits to JSON.

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

Export Captions

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.

Discover videos

Simply run python3 discovery.py followed by a list of space-separated YouTube video IDs and a list of discovered video, channel and playlist IDs will be printed, as well as whether caption contributions are enabled.