This makes it more convenient for when you have your modules installed from
your Linux distribution or so.
As it only affects those that are working with a cloned git tree, it is
supposed to be the case the they know what they are doing and shouldn't
affect the vast majority of the users (the wrapper created by setup.py is a
completely different one, when users install via pip etc.).
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
Features:
- Default arguments are loaded from `coursera-dl.conf` file
- Added option `--mathjax-cdn <MATHJAX_CDN>` to specify alternative MathJax CDN
- Added support for Resources section
New downloading features along with adaptations to the new APIs
- Enable multiple subtitles and transcripts with alternatives.
Sometimes we need to download subititles in different languages, for example, 'en' and 'zh-CN', which is not supported currently. The PR enabled downloading multiple subtitles & transcripts, along with fallback for each language, by using the following format:
```
--subtitle-language <lang1,lang2|fallback1_for_lang2|fallback2_for_lang2>
```
This can will also be an alternative fix for #596 .
- Enable downloading resources blocks.
Some materials are now in a new blocks named ``Resources``, which corresponed to the new API ``onDemandReferences.v1``. Fixing #597
- Enable file to store parameters.
There are cases where there are too many parameters (besides username and password) to be set each time we download a course. I use ``configargparse`` to read configurations stored in a local file named ``coursera-dl.conf``. Fixing #97
- Enable downloading new typename ``programming``
That is different from original ``gradedProgramming`` and ``ungradedProgramming`` so it is not recognized by coursera-dl currently. An example can be find at the end of [this page].
The new API is ``onDemandProgrammingImmediateInstructions.v1``.
- Allow alternative ``MathJax.js`` cdn url when downloading webpages, as the default [``MathJax.js`` url](https://cdn.mathjax.org/mathjax/latest/MathJax.js) is not accessible in some countries (this is the case at least for me).
Features:
- Add `--download-delay` option that adds a specified delay in seconds
before downloading next course. This is useful when downloading many
courses at once. Default value is 60 seconds.
- Add `--only-syllabus` option which is when activated, allows to skip
download of the course content. Only syllabus is parsed.
- Add support for `reflect` and `mcqReflect` question types in quizzes.
- Courses that encountered an error while parsing syllabus will be listed
in the end of the program execution, after all courses have been
processed (hopefully, downloaded). This helps skip vast output and easily
see which courses need user's attention, e.g. enrollment, session
switching or just patience until the course start date.
Bugfixes:
- Locked programming assignments in syllabus used to crash coursera-dl.
Now the script goes on parsing syllabus and skips locked assignments.
- Add missing import statement to playlist generation module
This change makes the script show courses where an error
during syllabus parsing occurred. Printing such courses
in the end is helpful to bring attention when downloading
multiple courses.
related #573
reflect generates the same narrow edit field as for numerical answers.
Yet it does not look as on Coursera site, I think it's enough
to indicate the intention. mcqReflect is basically the same as just mcq.
related #573
This option makes the script sleep for N seconds before
downloading next course. Default value is 60 seconds.
This option proved useful when downloading many courses at
once. Otherwise Coursera API starts to respond with errors
(cannot login).
related #573
The `class_names` argument shouldn't be required for certain flags (e.g.
`--version` or `--list-courses`). This makes it optional while also
taking these flags into account to display an appropriate error message
when they aren't being used.
Fixes#562
Features:
- Added option `--list-courses` to list currently enrolled courses (#514)
- Added option `--jobs N` to download resources in N threads simultaneously (#553)
- Added option `--download-quizzes` to download contents of graded and
ungraded quizzes (#490)
- Added option `--cache-syllabus` to avoid downloading course syllabus on
every run (this option is rather for developers)
Bugfixes:
- Locked lectures are also requested from server now, which allows to
download some programming assignments that were not downloaded before (#555)
Deletions:
- Support for old-style courses has been removed (Coursera discontinued old courses:
http://coursera.tumblr.com/post/145882467032/courseras-transition-to-a-new-technology-platform)
- `--ignore-http-errors` option has been removed and the default behavior
has been adjusted to include this option
- Removed deprecated `--on-demand` option. Now OnDemand classes are downloaded
by default
If user has already depleted his number of attempts, report that
and continue downloading other quizzes.# Please enter the commit message for your changes. Lines starting
HTTPError in debug run.
git di --
Be more verbose on cached