- Lectures (videos, subtitles, slides)
- Reading materials
- Jupyter notebooks
- Quizs
Python ⩾3.8 is required.
Install the dl_coursera package in a virtual environment.
$ pip install -U dl_coursera
$ dl_coursera --version
Alternatively, you can download dl_coursera as a single executable from https://github.com/FLZ101/dl_coursera/releases/. Note:
- This may not work if your OS is outdated
- On Windows, SmartScreen may prevent execution of the executable
-
Get the cookies file
Sign into Coursera, then use a browser extension to export cookies as a cookies file which will expire in about two weeks.
For Chrome/Edge/Firefox, you can use the Cookie-Editor extension.
-
Enroll
Navigate to homepage of the specialization/course you'd like to download, you can see its slug at the address bar. Enroll in.
-
Download
To download a specialization:
dl_coursera --spec --cookies path_of_the_cookies_file --outdir output_directory slugTo download a course:
dl_coursera --cookies path_of_the_cookies_file --outdir output_directory slug
-
Check your network
-
Make sure you have enrolled in the specialization/course
-
If the cookies file might have expired, try getting a new one
-
Try upgrading to the latest version
-
Remove the directory
<output-directory>/<slug>/.cacheand try again -
Visit the issues page. You may find a solution if others has encountered similar issues.
Or you could create a new issue describing what is going wrong and the steps to reproduce it. Don't forget to attach the file
<output-directory>/<slug>/.cache/main.logif it exists.