Skip to main content

A simple, fast, and reliable Coursera crawling & downloading tool

Project description

Todo

  • Lectures (videos, subtitles, slides)
  • Readings
  • Jupyter notebooks
  • Quizs

Install

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

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

    dl_coursera --cookies path_of_the_cookies_file --outdir output_directory slug
    

    For example:

    $ dl_coursera --cookies cookies.txt --outdir __data advanced-modeling
    ███████████████████████████████ [100%] 56/56 Crawling...
    ███████████████████████████████ [100%] 212/212 Downloading...
    Done :-)
    

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dl_coursera-1.0.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dl_coursera-1.0.1-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file dl_coursera-1.0.1.tar.gz.

File metadata

  • Download URL: dl_coursera-1.0.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for dl_coursera-1.0.1.tar.gz
Algorithm Hash digest
SHA256 70b6161946fa5f1e676d108af086b7cc0ec2e58966e1a0f27733b166ebe6e77f
MD5 218d5c7a4c1c331833df47cfeae34b5a
BLAKE2b-256 3db86e7b9e4b20f8f99a33b921cfcf2f9cf4a68931f80965675f657b47a7dd18

See more details on using hashes here.

File details

Details for the file dl_coursera-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: dl_coursera-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for dl_coursera-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f1d0c5eced9fd1575c464a028cc8cfb150fb7726242175c29f9140facc27a65
MD5 1d5b8244bf93a7491279042c4e65490f
BLAKE2b-256 4bb625c17bb7da1cc4806a3e73bed9f132ac0e2971e0f9973faf0f2f0b7eb93a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page