kism / vod-archive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vod-archive

Scripts for pulling youtube and twitch videos

Needs a youtube data v3 api key

Prerequisites

pip3 install -r requirements.txt

Make sure you also have ffmpeg installed and in your path

Examples

Archive top 100 videos of a youtube channel

archiveyoutube.py -k <api key> -c <youtube channel id> -n 100 -p /path/to/target/dir

To get chennel id, open the channel page in your browser and either

  • Open the devtools, in the console enter console.log(ytInitialData.metadata.channelMetadataRenderer.externalId)
  • Look for "externalId" in the page source of a channel

Archive all Tiny Desk Concerts from the NPR channel

archiveyoutube.py -k <api key> -c "UC4eYXhJI4-7wSWc8UNRwD4A" -s "Tiny Desk" -w -p /path/to/target/dir

About


Languages

Language:Python 95.9%Language:Shell 4.1%