This small python script allows you to download all the content from your UC3M Aula Global courses (.pdf, .docx, .pptx, etc.). It works as a crawler, checking the site for files as if it was you with your browser.
Download the repository as zip, clone it with git, or just use curl to get only the script. On GNU/Linux or MacOS:
curl -o aulaglobal.py "https://raw.githubusercontent.com/tairosonloa/Aula_Global_UC3M/master/aulaglobal.py"
pip3 install --user -r requirements.txt
python3 aulaglobal.py
Python version 3.7 or above is required to run the script. Also, you'll need two libraries: mechanize
and beautifoulsoup
.
Most of GNU/Linux distributions call the python package as "python3". To install dependences on Debian based GNU/Linux distros (Ubuntu, Linux Mint, ...):
sudo apt-get install python3 python3-pip
pip install -r requirements.txt
To install dependences on MacOS:
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python3
python3 get-pip.py
pip3 install --user -r requirements.txt
This script is under MIT license.