Comments (23)
Thats a link that is parsed from a description. As requested in #44.
It only tries to download files. I can change it so it fallback to the html webpage, if no file could be downloaded.
from moodle-dl.
I still have to fix something. I'll let you know as soon as I have tested it successfully.
from moodle-dl.
You can test it with the latest code, in a testing enviroment (don't destroy your working enviroment :D). As this is a development branch... some files may be downloaded again, because I changed the names of the modules again.
from moodle-dl.
I just tested it, and it downloaded a bunch of .desktop files which are just links to more php files, but none of the content is being downloaded still. It managed to grab a single php file out of the hundreds there should be.
from moodle-dl.
actually looking closer, even the .md file it's downloading is only the first couple lines on the page right before the next bolded section / heading. Maybe that's why it's not parsing the "next" link on the lessons.
from moodle-dl.
Is your moodle public?
from moodle-dl.
the rest of the php files are moodle links?
from moodle-dl.
no, it's not a public moodle. and yes, each php file is just the "next" page of the lesson. I've logged responses, is there a way to get more debug output?
from moodle-dl.
Looking through the "responses.log", it appears all the md files are actually just the descriptions of each week / lesson. So maybe I'm not actually downloading any content at all. I've gone through these lessons already, does it matter to the app whether it's been viewed before? I can still see the content using the mobile app to verify the api
from moodle-dl.
yes the markdown files are the descriptions of every file and section (as you in the --config explained)
from moodle-dl.
"next" pages should not downloaded at all... I never saw a plugin that sets next pages in the description xD thats so stupid
from moodle-dl.
It does not matter that you viewed a file ... The downloader has its own database.
from moodle-dl.
You need to give me more information what is happening. Is there anything missing? Or are there to much files? I can add an option, to make it optional to parse links from description. Normaly only files from the api are downloaded
from moodle-dl.
you can also contact me by mail or telegram...
from moodle-dl.
maybe I am misunderstanding the tool. I was hoping it would download the entire course, all the readings, assignments, and links. It downloaded all the pdf attachments correctly, and submissions / responses. But none of the content. What's your telegram? We can take this offline.
from moodle-dl.
what content?
telegram username: c0d3d3v
from moodle-dl.
It is fully capable of downloading files of any type (The module name in moodle for that is resource
). The downloader structures the files the way it is structured on the course page. It uses the moodle app API in first place, but in the issue-41 branche it is now also capable of using a browser cookie, to download also not suported modules.
More supported modules:
folder
are directroies on the course page. They are fully downloaded and correctly structured.url
are links to different websites or moodle itself. If the website contains a file or a video it tries to download it.index_mod
is a mod I made up, it combines all modules that points to a index.html page, and that shoud be downloaded or contains a file/video. Currently thats thepage
andmoodecvideo
module. (and some special links parsed from descriptions)cookie_mod
is the second mod I made up. It combines all moduls that needs a browser cookie to work. Currently that is only thekalvidres
module (videos from Kalvidre) and special links parsed from descriptions.data
is the module for databases . That are big modules in that teacher and sudents can upload files with lot of meta datas.assign
contains a assignment, files for the assignment, submissions of the teacher or student, grades, and more descriptions.
It will download all descriptions in markdown format of files, sections and where ever a description is written. Most of the times these descriptions are annoying. But you can delete all local files as you want, they wont be redownloaded, so you can keep the interesting descriptions (markdown files have the extension .md
).
Descriptions are now parsed for links, and these are traded as url
mod if it is not clear that it is one of the other mod.
If you miss any importend file, you need to give me more information, specialy the responses.log would be good (but only over telegram), it can contain private information.
You can decide to not to download some of the modules, you only need to go through the additional configuration, with --config
.
from moodle-dl.
It seems that you can download lessons only if you start an attempt. I don't know what kind of effects this can have. That's also the reason why I don't download quizzes, because I don't want to start the attempt . If an attempt is limited in time it could cause problems for the student. But I will test how it looks like with completed lessons.
from moodle-dl.
I would be happy if someone implements it and makes a Pull Request. Due to my studies I will not be able to implement this in the near future.
from moodle-dl.
I created a wiki entry with all the API methods we need to download lessons.
from moodle-dl.
I have implemented the first half to download lessons. The second half would be to also download the reports, that is, the ratings that can be viewed at /mod/lesson/report.php
. Would you like the reports to be downloaded as well?
You can test the function now and give me feedback.
I'm going to have a look at the workshop
mod, because of which you actually opened the issue.
from moodle-dl.
I created a wiki entry with all the API methods we need to download workshops.
from moodle-dl.
If you want that reports of lessons get also downloaded, then please open a new issue
from moodle-dl.
Related Issues (20)
- Download fails on some courses HOT 1
- Unable to lock cache on Moodle v4 HOT 4
- Retry on timeout
- config.json should be created unreadable to others HOT 2
- Do not download large files HOT 3
- Usage of -nt -u -pw just hangs moodle-dl HOT 1
- Same file with identical content gets downloaded again every time Moodle-DL is executed HOT 5
- NoneType has no len() - not downloading HOT 1
- Size estimation increases during download HOT 8
- Rework optional downloads
- Is there anyway to use it to DL all "Books" on a course? HOT 7
- The Moodle System rejected the Request [invalidprivatetoken] HOT 1
- Quizzes are not properly downloaded HOT 9
- Calendar mod fails with 'dict' object has no attribute 'append' HOT 1
- question re pip install HOT 9
- Add index to subfolders and files
- Encountering this SSL error whilst running --init HOT 4
- Download global grades from a course
- Use pyinstaller to build moodle-dl packages in CI/CD
- Investigate if we can download parts of h5p Modules
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-dl.