Giter Club home page Giter Club logo

unimib_moodle_scraper's Introduction

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

python3 -m venv venv             # create a virtual environment
source venv/bin/activate         # activate the virtual environment
pip install -r requirements.txt  # install the dependencies

python -m unimib_scraper --help  # show the help
# for instance
python -m unimib_scraper -d ./downloads --transfers 25 -u [email protected] -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, which is also GPL-3.0 licensed.

License

This project is licensed under the terms of the GNU General Public License v3.0.

unimib_moodle_scraper's People

Contributors

depau avatar

Watchers

 avatar  avatar

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.