Giter Site home page Giter Site logo

youtube-mass-downloader's Introduction

YouTube Mass Downloader

Download list of YouTube videos (by IDs) into rclone remote.

Requirements

  • docker and docker-compose
  • rclone (for generating rclone.conf)

Usage

  1. Put a list of YouTube video IDs (YTIDs) into master/app/youtube-ids.txt
  2. Setup rclone remote (https://rclone.org/remote_setup/), copy the rclone.conf to worker/app/rclone.conf
  3. Edit worker/app/config.js: rclone_base to appropriate value. Also adjust queue_concurrent to appropriate value according to available RAM and network condition.
  4. $ cd master then $ docker-compose up, you will see a list of YTIDs are queued. The queue status is printed every 10 seconds.
  5. Open another terminal, $ cd worker then $ docker-compose up, you will messages like:
node_1  | [x2XWG7Pdt2w] Download success.
node_1  | [X36Sl_ji2x4] Starting...
node_1  | [X36Sl_ji2x4] Downloading thumbnail to WTAKO:/YTDownloads/X3/6Sl_ji2x4/thumbnail.jpg...
node_1  | [X36Sl_ji2x4] Downloading meta to WTAKO:/YTDownloads/X3/6Sl_ji2x4/info.json...
node_1  | [X36Sl_ji2x4] Downloading video to WTAKO:/YTDownloads/X3/6Sl_ji2x4/video.mkv...
node_1  | [x35EZfOyXb8] Thumbnail downloaded.
node_1  | [x36f6L8NBzw] Meta downloaded.
node_1  | [x2zW4i_qOUc] Thumbnail downloaded.
node_1  | [x2zW4i_qOUc] Video downloaded.

which means the YouTube videos are being saved in /YTDownloads of your rclone remote (like Google Drive).

Multiple worker across computers or networks

  • Adjust worker/app/config.js redis config, make it possible to connect to the redis server.
  • You may also want to add authentication, see and edit master/docker-configs/redis.conf, worker/app/config.js, master/app/config.js
  • The worker computers should only $ cd worker then $ docker-compose up, just ignore the master.
  • Basically you are on your own.

Reliability

This program relies on a reliable message/job queue implementation bull. Honestly, I don't see any reasons why video would not download except bad config, bad network and google's server problem or rate limit.

youtube-mass-downloader's People

Contributors

saren-arterius avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

luckypoem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.