Skip to main content

A simple package to download files from ilias.uni-mannheim.de

Project description

Ilias Downloader UniMA

A simple python package to download files from https://ilias.uni-mannheim.de.

Key features

  • Automatically synchronizes all files for each download. Only new or updated files will be downloaded.
  • Uses the multiprocessing package to accelerate the download.

Install

Easy way via pip:

pip3 install iliasDownloaderUniMA

Otherwise you can clone or download this repo and then run

python3 setup.py install 

inside the repo directory.

Usage

Besides the uni-id and the password, only the ref id is required to download the files for a course. In general, a simple download script looks like this:

from IliasDownloaderUniMA import IliasDownloaderUniMA

m = IliasDownloaderUniMA()
m.setParam('download_path', '/path/where/you/want/your/files/')
m.login('your_uni_id', 'your_password')
m.addCourse(ilias_course1_ref_id)
m.addCourse(ilias_course2_ref_id)
m.downloadAllFiles()

A more specific example:

from IliasDownloaderUniMA import IliasDownloaderUniMA

m = IliasDownloaderUniMA()
m.setParam('download_path', '/Users/jonathan/Desktop/')
m.login('jhelgert', 'my_password')
m.addCourse(954265)   # OPM 601 Supply Chain Management
m.addCourse(965389)   # BE 511 Business Economics II
m.downloadAllFiles()

Note that the backslash \ is a special character inside a python string. So on a windows machine it's necessary to use a raw string for the download_path:

m.setParam('download_path', r'C:\Users\jonathan\Desktop\')

Where to get the ilias_course_ref_id?

Parameters

The Parameters can be set by the .setParam(param, value) method, where param is one of the following parameters:

  • num_scan_threads number of threads used for scanning for files inside the folders (default: 5).
  • num_download_threads number of threads used for download all files (default: 5).
  • download_path the path all the files will be downloaded to (default: the current working directory).
from IliasDownloaderUniMA import IliasDownloaderUniMA

m = IliasDownloaderUniMA()
m.setParam('download_path', '/Users/jonathan/Desktop/')
m.setParam('num_scan_threads', 20)
m.setParam('num_download_threads', 20)
m.login('jhelgert', 'my_password')
m.addCourse(954265)   # OPM 601 Supply Chain Management
m.addCourse(965389)   # BE 511 Business Economics II
m.downloadAllFiles()

Contribute

Feel free to contribute! :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

IliasDownloaderUniMA-0.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

IliasDownloaderUniMA-0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file IliasDownloaderUniMA-0.3.tar.gz.

File metadata

  • Download URL: IliasDownloaderUniMA-0.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for IliasDownloaderUniMA-0.3.tar.gz
Algorithm Hash digest
SHA256 3028bc2fdb97b72ef186b4ed72064b5e9e6a7db9e5caa20206113ddc96434f2a
MD5 910e1ed748483f4d1d2229f3d1571eaf
BLAKE2b-256 67842b50deb0b9de45b92f2843827caad8d87170bcc5a0624ff62144d131f75a

See more details on using hashes here.

File details

Details for the file IliasDownloaderUniMA-0.3-py3-none-any.whl.

File metadata

  • Download URL: IliasDownloaderUniMA-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for IliasDownloaderUniMA-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f15b65ec8ccc9680b2de702dc4f8e4c910cdbbd891187d307d127d7bd2a67a70
MD5 926d4259243b55cd6c5c78e99ec518ac
BLAKE2b-256 be60f3b765599b78de32e4b0a370a6c4ef648a73b918e9d6df4074832e1fb8e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page