Skip to content
Scripts for archiving youtube channels and playlists using youtube-dl.
Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
systemd-service
.gitignore
Pipfile
Pipfile.lock
README.md
channels.txt
dl_channels.sh
dl_playlists.sh
playlists.txt
youtube-dl.conf

README.md

youtube-archiver

Some scripts for archiving youtube channels or playlists using youtube-dl.

Fill the channels.txt and/or the playlists.txt file with the channels/playlists youtube urls you want to archive (the playlists have to be public) and run the corresponding script dl_channels.sh/dl_playlists.sh.

./dl_channels.sh
./dl_playlists.sh

Requirements

  • youtube-dl

Systemd-service

Some systemd service files are provided to automatically run the scripts. They are provided in the systemd-service folder.

The service file is the one running the script. The timer file allows the service to be run at a specific time.

The service files assumes the repository is located at ~/Documents/youtube-archiver. You can change it by modifying the WorkingDirectory in the service files.

You can also change the timer files, by default it will run the script every day at 2 am.

cp systemd-service/* ~/.config/systemd/user/
systemctl --user daemon-reload

# one time run
systemctl --user start youtube-archiver_channels.service

# activating the timers
systemctl --user enable --now youtube-archiver_channels.timer
systemctl --user enable --now youtube-archiver_playlists.timer

# see the status of either the service or the timer
systemctl --user status youtube-archive_playlists.service
systemctl --user status youtube-archive_playlists.timer

Similar projects

You can’t perform that action at this time.