This tool will download all videos of the given YouTube channels using the best possible quality for each video.
It also stores metadata from both channels and videos inside a local database with parent-children relationships.
- python 3
- pytube
- google-api-python-client
- sqlalchemy
Set your Google API key in an envvar:
export YT_API_KEY=yourapikey
List the names of the channels you wish to download inside targets
, one per line. For instance:
youlost
thegame
Then, install and run:
python3 -m venv venv
. venv/bin/activate
pip install --upgrade .
python dumptube
By default, videos are stored in /dumps
. You may specify the directory in which videos should be saved using the -d
keyword:
python dumptube -d /tmp
You can also see what has been stored in the database (db.sqlite
) like so:
python dumptube -s
See here
No idea yet, use as if CC-BY-NC-SA