C0D3D3V / Moodle-Downloader

A Moodle Crawler that downloads course content from Moodle (eg. lecture pdfs)
GNU General Public License v3.0
28 stars 4 forks source link
assets assets-downloader content crawl crawler dhbw donwnloader download downloads moodle moodle-crawler moodle-downlaader moodle-download moodle-downloader

This project is no longer being actively developed. (Jump to the new version)

Since about version 3.4 of Moodle, this downloader may not be able to reconstruct a correct folder structure. However, depending on the settings of Moodle, the downlowder may still work fully, so it is worth testing the downloader. You can check the version of your Moodle at https://your.moodle.de/lib/upgrade.txt Adapting the downloader to the new versions would require a major restructuring. So I have decided to take a completely different approach and rewrite the downloader from scratch.

The new downloader is compatible with all versions of Moodle from version 2.2 onwards and, unlike the old version, uses the Moodle API.

You can find the new downloader here: Moodle-Downlaoder 2

If somebody wants to develop this downloader further, I would be glad about a contact.

Moodle Downloader

The moodleCrawler.py script downloads all the files posted in the course page of all the courses you are enroled to. Dublicated Files in the root_dir get deleted. Links in the history file get not downloaded.

You can change names of downloaded Files and Places them to a different location, they will not be downloaded again (only if you delete the history files).

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

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

The crawler finds only coourses in your course list. So make sure that you check your settings of your course list on https://whateverYourMoodleAdress/my , so that every of your courses gets displayed there.

It is planed to build a script to login (and logout) from all courses on a moodle platform. For the moment there is a script called moodleCourseCrawler.py that uses the crawlcourseslink option. This script only logs all courses on the platform.

REQUIREMENTS

If colors is set to true:

EXTRAS

This code is the modified version of the downloader created by Vinay Chandra

Copyright 2017 Daniel Vogt

This file is part of Moodle-Crawler.

Moodle-Crawler is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Moodle-Crawler is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Moodle-Crawler. If not, see http://www.gnu.org/licenses/.