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
-
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
dl_coursera --cookies path_of_the_cookies_file --outdir output_directory slugFor example:
$ dl_coursera --cookies cookies.txt --outdir __data advanced-modeling ███████████████████████████████ [100%] 56/56 Crawling... ███████████████████████████████ [100%] 212/212 Downloading... Done :-)
Troubleshooting
-
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70b6161946fa5f1e676d108af086b7cc0ec2e58966e1a0f27733b166ebe6e77f
|
|
| MD5 |
218d5c7a4c1c331833df47cfeae34b5a
|
|
| BLAKE2b-256 |
3db86e7b9e4b20f8f99a33b921cfcf2f9cf4a68931f80965675f657b47a7dd18
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f1d0c5eced9fd1575c464a028cc8cfb150fb7726242175c29f9140facc27a65
|
|
| MD5 |
1d5b8244bf93a7491279042c4e65490f
|
|
| BLAKE2b-256 |
4bb625c17bb7da1cc4806a3e73bed9f132ac0e2971e0f9973faf0f2f0b7eb93a
|