archiving community contributions on YouTube: unpublished captions, title and description translations and caption credits
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
tech234a 664eb02e71 If community-updated metadata is available retrieve it, if captions are published, retrieve the community version too il y a 3 ans
.gitignore Update gitignore il y a 3 ans
README.md Update README.md il y a 3 ans
config.json Add files via upload il y a 3 ans
discovery.py Reduce exceptions, limit threads il y a 3 ans
export.py If community-updated metadata is available retrieve it, if captions are published, retrieve the community version too il y a 3 ans
requirements.txt Add files via upload il y a 3 ans
tracker.py Implement initial tracker API il y a 3 ans
worker.py If community-updated metadata is available retrieve it, if captions are published, retrieve the community version too il y a 3 ans

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.