- Download lectures (videos, subtitles, slides)
- Download reading materials
- Download quizzes
- Download jupyter notebooks
- Generate a playlist for each course
- Select subtitle language(s)
Python ⩾3.10 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 --cookies path_of_the_cookies_file --outdir output_directory --spec slugTo download a course:
dl_coursera --cookies path_of_the_cookies_file --outdir output_directory slugFor each course, a
playlist.m3ufile is generated in the course directory. It lists the downloaded videos and can be opened with VLC, mpv, or other video players.
Extra options:
--quiz: include quizzes--subtitles <languages>: comma-separated subtitle language codes without spaces, e.g.en,zh-CN. Typical codes:en,zh-CN,es,fr,de,pt-BR,ja,ko,ru,it,ar,hi. Default: download the only available language; otherwise English if available.
- If math symbols do not render or images do not show in downloaded HTML files, the browser may be opening them from a Flatpak sandbox path such as
file:///run/user/1000/doc/..., which prevents loading the localresource/files. Open the files with a non-Flatpak browser, drag the directory containingresource/into the browser window, or make the output directory accessible to the Flatpak sandbox.
-
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.


