项目作者: Serphentas

项目描述 :
Bulk YouTube downloader in Python
高级语言: Python
项目地址: git://github.com/Serphentas/dumptube.git
创建时间: 2017-08-11T22:16:16Z
项目社区:https://github.com/Serphentas/dumptube

开源协议:

下载


dumptube

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.

Requirements

  • python 3
  • pytube
  • google-api-python-client
  • sqlalchemy

Usage

Set your Google API key in an envvar:

  1. export YT_API_KEY=yourapikey

List the names of the channels you wish to download inside targets, one per line. For instance:

  1. youlost
  2. thegame

Then, install and run:

  1. python3 -m venv venv
  2. . venv/bin/activate
  3. pip install --upgrade .
  4. python dumptube

By default, videos are stored in /dumps. You may specify the directory in which videos should be saved using the -d keyword:

  1. python dumptube -d /tmp

You can also see what has been stored in the database (db.sqlite) like so:

  1. python dumptube -s

Contributing

See here

License

No idea yet, use as if CC-BY-NC-SA