rojter-tech / svtplaydl.py

Automated download from SVTPlay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automated download from SVTPlay with svtplaydl.py

You can download whole courses from a number of tutorial sites with the CLI tool youtube-dl, however, in this Git I have provided an Python script, svtplaydl.py, for automated download of a whole sequence of SVTPlay series at once using youtube-dl as a subprocess. Below I give an example of how to use the svtplaydl.py script to get videos from an arbitrary large list of series at their site.

Installation of youtube-dl

For macOS/UNIX

With brew for macOS:

brew install youtube-dl

With npm:

npm install youtube-dl

Or you can curl/wget the thing:

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
For Windows

Download with npm as above or just download the exe-file from the link below and put the exe in your PATH.

Or download with npm like above.

Source: youtube-dl download

Usage

Download from SVTPlay with pluradl.py

After installation of youtube-dl (thus is avaiable to the environment) make sure that courselist.txt is in the same directory as svtplaydl.py with the video ID's of your choice listed row by row.

Run the command below in your terminal to download all the videos from all the series in videolist.txt. The videos will be automatically placed in course specific folders and named by playlist order number. Supply videolist.txt with your desired series and do the following ...

python svtplaydl.py

... with videolist.txt available at the same path ...

courselist.txt

var-tid-ar-nu
svenska-nyheter
den-forsta-manniskan
.
.
.

About

Automated download from SVTPlay


Languages

Language:Python 97.7%Language:Shell 2.3%