I wish I had time to track down the real URL that's preventing TLS
negotiation, but this at least gets coursera-dl working with its own
downloader again.
`clean_filename` wasn't used; it's now used before making directories
or write files under the notebook folder.
`clean_filename` is improved a little, to handle more Windows-specific
edge cases. And the existing tests were updated accordingly.
The structure is very similar to all other text instructions but peer
assignment instructions should be retrieved using the following API method:
onDemandPeerAssignmentInstructions.v1
fix#650
Bellow a list of reasons for the change:
* Is better to use an official python image instead
* UBUNTU:14 is very old, better use a more recent image
* The old Docker image used to clone this repo, that isn't necessary.
* Old Docker image wan't ephemeral enough
* For layer optimization, is better to add the dependencies before installing
the software
* Old image didn't set an entrypoint
From @moiseslodeiro's description:
> Coursera Notebooks is a new section in some courses that includes
> some interactive files that are note in the resources. According
> to the Python Jupyter format, it is mandatory to get them on the
> go because the session id (it changes on each request).
Coursera Notebooks is a new section in some courses that includes
some interactive files that are note in the resources. According
to the Python Jupyter format, it is mandatory to get them on the
go because the session id (it changes on each request).
Until we discover what is causing the Python 3.3 failures (and only them),
let us allow those failures. We may disable those as soon as we know what is
happening (probably by contacting the Travis CI support).
(I hope that I am using the right syntax for Travis).
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
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).