Unfortunatelly the export of a book from Secasio doesn't contain the picture-files.
This script downloads .png, .jp(e)g and .gif files from Secasio.de.
It can't download attachements like .pdf or .apkg (yet) because it needs login data to do so.
First export the desired Book (Course) from Secasio.de
as .md or .html.
(e.g. Betriebssysteme, Rechnernetze und verteilte Systeme (DLBIBRVS01))
Then run this script, point it to the location of the .md or .html file and choose a path where the content should be written to.
# Create venv
python3 -m venv /path/to/venv
# Run Powershell as an Administrator
Set-ExecutionPolicy Unrestricted (Optional - Disables needs of Admin privileges)
# Activate venv: Windows
.\path\to\venv\Scripts\Activate.ps1
# Activate venv: Linux / MacOS
source venv/bin/activate
# Install requirements directly
pip3 install inquirer
pip3 install requests
# Alternatively, use requirements.txt
pip install -r requirements.txt
The script can now simply be called like this:
python contentdl.py
# or
py -3 contentdl.py
[ ] Automatically replace remote links with local links in given file
[ ] Add option to provide login data to download attachements
[ ] Add threading to increase speed
[ ] Maybe create a GUI-version
All source code and documentation in this repository is licensed under the MIT license.