Skip to content

n0ctua/PSB-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSB Downloader

version

Small python script to download a bunch of episodes from the media library of the German Public Service Broadcast (Mediathek des Öffentlich Rechtlichen Rundfunks)

Prerequisites

Setup

Setup virtual environment and install requirements:

git clone git@github.com:n0ctua/PSB-Downloader.git
  or 
git clone https://github.com/n0ctua/PSB-Downloader.git
cd PSB-Downloader

python -m venv ./venv                    
source venv/bin/activate
python -m pip install -r requirements.txt

Change config.ini to your needs:

title = title of TV program you want to download
download_since = download episodes released from this date until today
dl_dir = directory where files will be downloaded to

Usage

python main.py [-h] [-d] [-n] [-q]

options:
  -h, --help       show this help message and exit
  -c, --cronjob    use this option if you run this script via cron
  -d, --dry-run    only show what would be downloaded, without actually doing anything
  -n, --no-update  don't update the date in config.ini to the current date after the download finished
  -q, --quiet      don't output information to STDOUT

Run as Cronjob

Add a new entry in crontab with crontab -e like so:

 30 20 * * 5 /path/to/project/PSB-Downloader/venv/bin/python /path/to/project/PSB-Downloader/main.py --cronjob >> /path/to/project/PSB-Downloader/downloader.log 2>&1

About

Small python script to download a bunch of episodes from the media library of the German Public Service Broadcast (Mediathek des Öffentlich Rechtlichen Rundfunks)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages