Commit graph

590 commits

Author SHA1 Message Date
Rogério Brito
0ef2c840f3 Update rbrito's email address.
After more than 1/4 century, my email address is going to die. ☹

I'm "feeling homeless" now. ☹ Suggestions for privacy-oriented email hosts
are highly welcome.
2021-02-11 17:09:12 -03:00
Rogério Brito
02e3c4db9c coursera: Use rbrito's full name. 2021-02-11 17:08:33 -03:00
Rogério Brito
58022c1685 coursera: Update my copyright years. 2021-02-11 17:06:35 -03:00
Yuri Bochkarev
58b8cacefb Bump version from 0.11.4 to 0.11.5
Features:
  - add --cauth argument to specify CAUTH cookie directly from command-line (#724)
2019-12-16 21:46:37 +01:00
Vitaly Strizhenok
a59381c364 added CAUTH parameter for command line 2019-04-30 18:29:19 +03:00
Yuri Bochkarev
fc40bcee13 Bump version (0.11.3 -> 0.11.4)
Features:
  - Do not expand class names if there is a specialization with the same name,
    but add --specialization flag to do that explicitly (#673)
2018-06-24 13:47:54 +03:00
Yuri Bochkarev
d95d0573bb Add --specialization flag to expand specialization names only when explicitly requested
This is because there are clashes in course and specialization names.
For example, "machine-learning" is both a course and a specialization
name. These are different courses from different universities (!).
2018-06-24 13:41:03 +03:00
Yuri Bochkarev
54316b2430 Bump version (0.11.2 -> 0.11.3)
Bugfixes:
  - Switch to newer API for syllabus and lecture retrieval (#665, #673, #634)

Features:
  - You can now download specializations: the child courses will be
    downloaded automatically
2018-06-24 11:05:23 +03:00
Yuri Bochkarev
f928dbf6c9 Update changelog 2018-06-24 10:43:07 +03:00
Yuri Bochkarev
ee614a576b 🔨 + 🔧 = 💄 2018-06-24 10:39:18 +03:00
Yuri Bochkarev
7420fa4631 Add support for specialization name in the arguments
Now specialization names can be passed and they will be
expanded: corresponding child classes will be downloaded.
2018-06-24 10:36:42 +03:00
Yuri Bochkarev
ad53c28961 Use OrderedDict in api.py 2018-06-24 09:10:30 +03:00
Yuri Bochkarev
95666a6fdf resolve merge conflicts 2018-06-24 00:28:25 +03:00
Yuri Bochkarev
d2467a7ae2 💄 autopep8 2018-06-24 00:10:22 +03:00
Yuri Bochkarev
3df019a661 Move to newer API for syllabus and lecture retrieval
ref #665
ref #673
ref #634
2018-06-24 00:09:31 +03:00
Richard Decal
b0d1cc0cff better error msg for incorrect .netrc permissions (#674) 2018-06-20 21:27:17 +03:00
John Doe
d17027da41 Typo (#672) 2018-06-17 20:36:53 +03:00
John Doe
5bc5cd9c77 Typo (#671) 2018-06-17 09:42:36 +03:00
Yuri Bochkarev
ad61d52a5b Mention that username is email address in command-line options
fix #625
2018-06-11 18:16:09 +03:00
Yuri Bochkarev
98e4c14106 autopep8 + trailing spaces 2018-06-11 18:14:48 +03:00
Yuri Bochkarev
45824ef4b8 autopep8 2018-06-09 23:07:05 +03:00
Yuri Bochkarev
de2ba5bdce Add comment about split('/') in _get_notebook_folder 2018-06-09 23:06:23 +03:00
Yuri Bochkarev
13ae2f1e9b
Merge pull request #654 from noureddin/clean-filenames
Improve and use clean_filename in _get_notebook_folder
2018-06-09 23:00:56 +03:00
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
bff4f4f953 Use TLSv1.2 instead of v1.0 (fix #661, #663) 2018-06-03 11:24:34 +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
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
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
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
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
Rogério Brito
761c7fb188 coursera: Update version number.
[ci skip]
2018-02-19 22:46:14 -03: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
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
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
孙业军
eec99f64a4 add support to download certain subtitle 2017-03-10 14:35:53 +08:00
孙业军
2ea2e7aa62 improve download subtiles. add support to download certern language's subtile 2017-03-10 01:47:48 +08:00
Yuri Bochkarev
759fe78e62 Bump version (0.7.0 -> 0.8.0)
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
2016-10-04 00:28:21 +03:00
Yuri Bochkarev
f7d451c581 Fix tests to make sure they use mocked session, not actual Session
related #573
2016-10-03 20:48:03 +03:00
Yuri Bochkarev
00b36f7035 Show problematic courses after having downloaded all courses
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
2016-10-03 19:51:09 +03:00
Yuri Bochkarev
69de37b82e Add support for reflect and mcqReflect question type
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
2016-10-03 19:13:44 +03:00
Yuri Bochkarev
9f333903d0 Add --only-syllabus option to download syllabus only and skip course contents
Useful for developers.

related #573
2016-10-03 18:21:18 +03:00
Yuri Bochkarev
7579dc9771 Introduce --download-delay option
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
2016-10-03 17:53:38 +03:00
Yuri Bochkarev
e430da1304 Be more verbose when printing login failure message
related #573
2016-10-03 17:37:39 +03:00
Yuri Bochkarev
7f773530fc Add missing import to playlist.py
related #573
2016-10-03 17:36:52 +03:00
Yuri Bochkarev
a1c1d624b4 Be more robust when extracting quiz/exam/programmingAssignment
This a revised version of #575 pull request by @partobs-mdp

fix #568
related #573
2016-10-03 17:36:17 +03:00