vinaychandra / Moodle-Downloader

Automatic Moodle Downloader Script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatic Moodle Downloader

The moodle.py script downloads all the files posted in the course page of all the courses in your moodle page. Files with the same name in a course are not downloaded and are ignored.

Set the following in the file config.ini before running the script

  • username : LDAP Username
  • password : LDAP Password
  • root_dir : The root directory for where the files are to be stored
  • url : URL for moodle authentication

All the files are stored in their respective directories inside the root_dir with the names as in moodle.

Cannot connect to moodle : Authentication failure or moodle is down.

REQUIREMENTS

  • Python 2.7+
  • Beautifulsoup - sudo apt-get install python-beautifulsoup

EXTRAS

  • Put watch -n 3600 python moodle.py in startup to fetch the files every hour.

This code is the modified version of the downloader created by Dheeraj Reddy Kalmekolan

About

Automatic Moodle Downloader Script


Languages

Language:Python 100.0%