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.
uv run python -m unimib_scraper --help # show the help
# for instance
uv run python -m unimib_scraper -d ./downloads --transfers 25 -u [email protected] -p PaSsWoRd
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
.
The Kaltura video URL resolver is based on Blastd/UnimibKalturaResolver, which is also GPL-3.0 licensed.
This project is licensed under the terms of the GNU General Public License v3.0.