Git Product home page Git Product logo

vod_downloader's Introduction

Twitch VOD Downloader

This Bash script uses youtube-dl to download VODs from Twitch channels specified in the urls.txt file. It saves the videos in the folder /home/username/Videos/VODs/ and creates a folder for each channel. It also saves JSON metadata from the --print-json command of youtube-dl for each video in the folder /home/username/Videos/metadata/ and creates a folder for each channel. The metadata is dumped into a local MongoDB database.

Usage

Command Line Arguments

The script supports the following command line arguments:

  • --dateStart: Specifies the start date for downloading VODs. Format: YYYYMMDD.
  • --dateEnd: Specifies the end date for downloading VODs. Format: YYYYMMDD. For example, to download VODs between March 1, 2023 and March 15, 2023, you would run the following command:
./vod_downloader.sh --dateStart 20230301 --dateEnd 20230315

If no command line arguments are specified, the script will download VODs from the day before the current date until the current date.

URLs file

The URLs file is located at urls.txt and contains the list of Twitch channels to download VODs from. The format of each line should be:

https://www.twitch.tv/channel_name

Dependencies

This script requires the following dependencies:

Running the script

To run the script, simply navigate to the directory where the script is located and run the following command:

./vod_downloader.sh

Notes

If a VOD has already been downloaded, it will be skipped. If a WAV file has already been downsampled to 16kHz, it will be skipped. The script assumes that the MongoDB server is running locally and that the database twitch-vod-downloads has already been created. The script assumes that the user running the script has read and write access to the /home/username/Videos/ directory.

This README was generated with ChatGPT

vod_downloader's People

Contributors

differentiablepizza avatar

Watchers

 avatar

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.