Giter VIP home page Giter VIP logo

secasio-cdl's Introduction

secasio-cdl

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.

Instruction

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.

Script Setup

# 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

TODO

[ ] 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.

ReadMe_Card

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.