https://github.com/depau/unimib_moodle_scraper
Python CLI tool to download all content from UNIMIB's Moodle E-Learning platform
https://github.com/depau/unimib_moodle_scraper
e-learning moodle remote-learning unimib
Last synced: 6 months ago
JSON representation
Python CLI tool to download all content from UNIMIB's Moodle E-Learning platform
- Host: GitHub
- URL: https://github.com/depau/unimib_moodle_scraper
- Owner: depau
- License: gpl-3.0
- Created: 2023-03-26T21:52:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-08T21:52:01.000Z (over 1 year ago)
- Last Synced: 2025-01-08T22:37:26.550Z (over 1 year ago)
- Topics: e-learning, moodle, remote-learning, unimib
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UNIMIB Moodle Scraper
A command like tool to find and download all files (including lecture recording videos) from the Moodle platform of the
Università degli Studi di Milano-Bicocca.
The tool should be easily modifiable to work with other Moodle deployments that use Kaltura as video provider, but I
don't intend to support other deployments.
## Usage
```bash
uv run python -m unimib_scraper --help # show the help
# for instance
uv run python -m unimib_scraper -d ./downloads --transfers 25 -u n.lastname@campus.unimib.it -p PaSsWoRd
```
## Login issues
The login process is a bit fragile; if you get an error at the beginning, you can try copying the cookies from your
browser.
Open `cookies.json` and see which cookies are defined.
Go to https://elearning.unimib.it, log in. Open the developer tools, go to the
network tab, reload the page, and copy
the cookies from any request to `elearning.unimib.it` into the `cookies.json`
file. You don't need to copy all of them, just those that are present
in `cookies.json`.
## Credits
The Kaltura video URL resolver is based
on [Blastd/UnimibKalturaResolver](https://github.com/Blastd/UnimibKalturaResolver/),
which is also GPL-3.0 licensed.
## License
This project is licensed under the terms of the GNU General Public License v3.0.