Commit graph

1131 commits

Author SHA1 Message Date
Yuri Bochkarev
0ac9765f81 Bump version (0.11.1 -> 0.11.2)
Bugfixes:
  - Use TLS v1.2 instead of v1.0
  - Switched to api.coursera.org subdomain for subtitles requests (#664)
2018-06-03 11:29:40 +03:00
Yuri Bochkarev
2d3191997e Update CHANGELOG.md 2018-06-03 11:28:08 +03:00
Yuri Bochkarev
bff4f4f953 Use TLSv1.2 instead of v1.0 (fix #661, #663) 2018-06-03 11:24:34 +03:00
Yuri Bochkarev
5c9d5bcb8c
Merge pull request #664 from TheGoddessInari/master
Followup, change to api.coursera.org in the definition and tests.
2018-06-03 11:20:33 +03:00
TheGoddessInari
c98e83702e Followup, change to api.coursera.org in the definition and tests.
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.
2018-06-02 19:10:08 -07:00
Yuri Bochkarev
bb62038650 Bump version (0.11.0 -> 0.11.1)
Bugfixes:
  - Specify utf-8 encoding in setup.py to fix installation on Windows (#662)
2018-06-02 23:17:18 +03:00
Yuri Bochkarev
6dccacd464 Update CHANGELOG.md 2018-06-02 23:16:29 +03:00
Yuri Bochkarev
699a9e03f3 Add more files to ignore to MANIFEST.in 2018-06-02 23:14:47 +03:00
Yuri Bochkarev
fb890e9756
Merge pull request #662 from TheGoddessInari/master
setup.py: Match file.open encoding with the source code encoding.
2018-06-02 23:12:06 +03:00
TheGoddessInari
82722d80c6 setup.py: Match file.open encoding with the source code encoding.
Hit encoding errors on Windows after 0.11, easiest solution is to match encodings.
2018-06-02 13:04:49 -07:00
Yuri Bochkarev
dd983468c8 Bump version (0.10.0 -> 0.11.0)
Features:
  - Add support for "peer assignment" section (#650)

Bugfixes:
  - Switched to api.coursera.org subdomain for API requests (#660)
2018-06-02 19:16:54 +03:00
Yuri Bochkarev
362c21db55 Update CHANGELOG.md 2018-06-02 19:15:57 +03:00
Yuri Bochkarev
3ef1a8d9e3
Merge pull request #660 from TheGoddessInari/master
Switch to API subdomain for API URL defines (fixes SSL errors)
2018-06-02 19:05:03 +03:00
TheGoddessInari
32e95d0d1c Switch to API subdomain for API URL defines.
Started hitting errors today, switch from www.coursera.org/api/ to api.coursera.org/api/ to fix.
2018-06-01 19:42:08 -07:00
Yuri Bochkarev
38b620c39e
Merge pull request #658 from dharmanshu24/master
Update Readme.md to run without -p field
2018-05-31 19:44:59 +03:00
Dharmanshu Saini
b01bde501e
Update Readme.md to run without -p field 2018-05-31 21:00:17 +05:30
NoUrEdDiN
564c741755 improve and use clean_filename
`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.
2018-05-07 10:49:13 +02:00
Yuri Bochkarev
7d6d0909ab Mention how to configure timeouts for an external downloader (aria2c)
ref #453
ref #626
2018-04-08 21:50:50 +03:00
Yuri Bochkarev
2b9e16cc3a
Merge pull request #651 from coursera-dl/650-add-support-for-phaser-peer-typename
Add support for "phaserPeer" typename (peer assignment instructions)
2018-04-08 20:52:48 +03:00
Yuri Bochkarev
fda7e337c3 Add fixtures to test "phasedPeer" 2018-03-25 16:18:01 +03:00
Yuri Bochkarev
1ed4490b5b Add tests for "phasedPeer" typename (peer assignment instructions) 2018-03-25 16:17:34 +03:00
Yuri Bochkarev
26cf38cee3 Add support for "phasedPeer" typename (peer assignment instructions)
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
2018-03-25 16:13:27 +03:00
Yuri Bochkarev
acfa6c5fce Fix style and whitespace 2018-03-25 16:10:10 +03:00
OPSXCQ
4326937e12
Removed old Dockerfile and related files.
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
2018-03-02 18:53:11 +00:00
OPSXCQ
360aec5f27
dockerfile added 2018-03-02 18:53:11 +00:00
Rogério Brito
2e265ef24e README: Remove dead bitdeli badge. 2018-02-19 22:59:04 -03:00
Rogério Brito
c484e66a45 README: Adjust Python 3 versions. 2018-02-19 22:57:20 -03:00
Rogério Brito
6e933dd0a1 setup.py: Remove support for Python 3.3 and add for Python 3.6. 2018-02-19 22:54:32 -03:00
Rogério Brito
b4ebc526ac README: Remove unavailable badge. 2018-02-19 22:53:17 -03:00
Rogério Brito
761c7fb188 coursera: Update version number.
[ci skip]
2018-02-19 22:46:14 -03:00
Rogério Brito
9cf1af5979 CHANGELOG: Update with info of new release. 2018-02-19 22:45:02 -03:00
Rogério Brito
8853a2786c
Add support to download Coursera Notebooks
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).
2018-02-19 21:28:17 -03:00
Rogério Brito
20dfd7fade
Merge pull request #638 from orlandocr/patch-1
Remove extraneous `True` after the `--download-quizzes` example.

Thanks @orlandocr for the help.
2018-02-19 21:00:26 -03:00
Rogério Brito
438ff4040d
Merge pull request #639 from Ir1d/patch-1
Improve information for users in China.

Thanks to @Ir1d for the changes.

[ci skip]
2018-02-19 20:58:10 -03:00
SCaffrey
2250ea6238
Update README.md
ref: https://github.com/googlehosts/hosts/blob/master/hosts-files/hosts#L163
2018-01-15 22:13:08 +08:00
orlandocr
e16d9c1ae3
Fixed --download-quizzes usage
Fixed --download-quizzes parameter usage description
2018-01-08 20:06:19 -06:00
Rogério Brito
27fae19184
travis: Remove Python 3.3 from build matrix.
This closes #632. Thanks @PrabhanshuAttri for the sharp eye.
2017-11-29 22:44:08 -02:00
Moisés Lodeiro
788f9539fb Added info message when skipping file 2017-11-20 11:27:52 +00:00
Moisés Lodeiro
edc295be68 Added functionality to download Coursera Notebooks
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).
2017-11-20 11:15:18 +00:00
Rogério Brito
f2e9b56e03
Merge pull request #631 from coursera-dl/python-3-shebang
coursera-dl: Use a Python 3 shebang.
2017-11-07 00:38:55 -02:00
Rogério Brito
84de86a349
Merge pull request #633 from coursera-dl/rbrito-patch-1
travis: Add Python 3.6 and Allow Python 3.3 to fail.
2017-11-07 00:36:35 -02:00
Rogério Brito
198746a538 travis: Allow Python 3.3 to fail.
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>
2017-11-06 22:23:22 -02:00
Rogério Brito
e396cbc837
travis: Add list Python 3.6 to test matrix
This makes the tests be performed with the most recent/recommended Python version.
2017-11-06 20:48:30 -02:00
Rogério Brito
58e2ba54a2 coursera-dl: Use a Python 3 shebang.
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>
2017-11-06 18:29:09 -02:00
Yuri Bochkarev
0ec980514d Add China issues section in Troubleshooting 2017-08-26 21:54:45 +03:00
Yuri Bochkarev
154ef8dfef Bump version (0.8.0 -> 0.9.0)
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
2017-05-29 19:50:34 +03:00
Yuri Bochkarev
7b3e576de9 Update CHANGELOG.md 2017-05-29 19:49:38 +03:00
Yuri Bochkarev
e02fc5177a Merge pull request #607 from dzhuang/new_dl_features
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).
2017-05-23 11:25:39 +03:00
ifaint
08b8ad44c2 1. enable multiple subtitles and transcripts with alternatives.
1. enable downloading resources blocks.
1. enable file to store parameters.
1. added unit-test.
2017-05-19 01:42:48 +08:00
Rogério Brito
d1bbb58402 Merge pull request #605 from gautamkrishnar/patch-1
Fix repository language being misclassified on github.

Thanks to @gautamkrishnar for noticing the issue.
2017-05-05 21:54:45 -03:00