Skip to content

A python script to synchronise course files from studip JSON API (At TUHH)

Notifications You must be signed in to change notification settings

lennartbrandin/studip-file-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is this

A python script to access the Studip JSON API, collect the courses of the User, recursivly collect folders & files and download them to file_destination

Usage

git clone git@github.com:lennartbrandin/studip-file-sync.git
cd studip-file-sync
nano config.json # Modify the default values in the config
python studip.py

Example of resulting structure in the file_destination

SoSe 24
├── Seminar
│   └── Grundlagen der Gruppenleitung und Didaktik am Beispiel von Robotik- und Technikkursen_Tutorenausbildung robotik@TUHH (SE) [BA]
├── sonstige
│   └── Language Café@TUHH - English
├── Übung
│   └── Elektrotechnik II_ Wechselstromnetzwerke und grundlegende Bauelemente (GÜ)
└── Vorlesung
    ├── Elektrotechnik II_ Wechselstromnetzwerke und grundlegende Bauelemente (VL)
    └── Objektorientierte Programmierung, Programmierparadigmen
WiSe 23_24
├── Übung
│   └── Diskrete Algebraische Strukturen (GÜ)
└── Vorlesung
    ├── Diskrete Algebraische Strukturen (VL)
    └── [Vorlesung & Übung] Elektrotechnik I_ Gleichstromnetzwerke und elektromagnetische Felder

Notes

To have windows compliant paths all invalid characters are replaced by "_"

def replace_invalid_chars(string):
for char in '<>:"/\\|?*':
string = string.replace(char, "_")
return string

About

A python script to synchronise course files from studip JSON API (At TUHH)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages