Automated YouTube Archival
This repository has been archived on 2023-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Cyberes 58d9a65988 Update 'README.md' 2019-12-17 01:09:34 -07:00
.gitignore upload 2019-12-16 21:25:12 -07:00
LICENSE Initial commit 2019-12-16 19:25:50 -07:00
README.md Update 'README.md' 2019-12-17 01:09:34 -07:00
automated-youtube-dl.py b 2019-12-16 23:39:46 -07:00
get-urls.sh upload 2019-12-16 21:25:12 -07:00
pip-update.py Update 'pip-update.py' 2019-12-16 23:47:20 -07:00

README.md

automated-youtube-dl

Automated YouTube Archival

Download, compress, and send your YouTube videos.

Installation

  1. Install Python 3.7

    1. This won't uninstall or overwrite any other python versions.
    sudo apt update
    sudo apt install software-properties-common
    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt install python3.7
    sudo python3.7 -m pip install pip
    
  2. Install youtube-dl

    1. sudo python3.7 -m pip install youtube-dl
  3. Install jq

    1. sudo apt-get install jq

Usage

python3.7 youtubedl-big-archive.py <url of youtube video, channel, or playlist> --output <name of 7z archive>

Arguments:

  • file The URL of the YouTube video, channel, playlist, or path to a txt file with URLs. Positional
  • --playlists, -pl Is the input file a list of playlists? Enables the sequential renaming of the 7z archives
  • --output, -o The name of the 7z archive to create. If unset no 7z archive is created
  • --encrypt, -e Encrypt the compressed 7z archive. If set will ask for password
  • --password, -p Provide the password to encrypt the compressed 7z archive with. Don't combine --encrypt and --password
  • --no-update, -nu Don't update any Pip packages. You'd want to update because youtube-dl updates so much
  • --max-size, -m Max size of video in mb. Default is 2000 mb (2 gb)
  • --check-size, -c Double verify the video is smaller than the max size and skip if not
  • --cmd, -c Use the bash (commandline) youtube-dl instead of the embedded python version