Skip to main content

Todo

  • Lectures (videos, subtitles, slides)
  • Reading materials
  • Jupyter notebooks
  • Quizzes

Install

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

How-to

  1. 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.

  2. Enroll

    Navigate to homepage of the specialization/course you'd like to download, you can see its slug at the address bar. Enroll in.

  3. Download

    To download a specialization:

    dl_coursera --cookies path_of_the_cookies_file --outdir output_directory --spec slug
    

    To download a course:

    dl_coursera --cookies path_of_the_cookies_file --outdir output_directory slug
    

    For each course, a playlist.m3u file is generated in the course directory. It lists the downloaded videos and can be opened with VLC, mpv, or mplayer.


    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.

Note

  • 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 local resource/ files. Open the files with a non-Flatpak browser, drag the directory containing resource/ into the browser window, or make the output directory accessible to the Flatpak sandbox.

Troubleshooting

  1. Check your network

  2. Make sure you have enrolled in the specialization/course

  3. If the cookies file might have expired, try getting a new one

  4. Try upgrading to the latest version

  5. Remove the directory <output-directory>/<slug>/.cache and try again

  6. 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.log if it exists.

Star History

Star History Chart

Metadata

Release files for dl-coursera 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dl-coursera 1.1.0
File Size Uploaded
dl_coursera-1.1.0.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for dl-coursera 1.1.0
File Interpreter ABI Platform
dl_coursera-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.1 MB

Release files / dl_coursera-1.1.0.tar.gz

Download URL dl_coursera-1.1.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
f24f58b1539f64c4bb36eae566b4c5171826af2b14fb5f988f792834997e9f48
BLAKE2b-256 checksum
How to use checksums
0a636cf75fb820ec131878e05216a9686799ad25af7de2d532358c54f956139b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release files / dl_coursera-1.1.0-py3-none-any.whl

Download URL dl_coursera-1.1.0-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ddcbb5986ec552182fcc18b4e88af5f725a83680da59d078a4eba3ba9fe4e013
BLAKE2b-256 checksum
How to use checksums
60e016756a2d4e6c7027eedf855192a77b41c68e59cabf3b01edb327933d84c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page