Professional Documents
Culture Documents
Release history
Todo
Download files [x] Lectures (videos, subtitles, slides)
[x] Readings
[ ] Quizs
Project links
[ ] Jupyter notebooks
Homepage
Install
Statistics Python 3.x is required. It is recommended to install this tool in a virtual environment.
GitHub statistics:
Stars: 112
$ pip install -U dl_coursera
$ dl_coursera --version
Forks: 24
Open issues/PRs: 13
View statistics for this project via How-to
Libraries.io , or by using our public
dataset on Google BigQuery 1. Get the cookies.txt file
Sign in to Coursera, then use a browser extension to export cookies as cookies.txt. The cookies.txt will expire in
Meta about two weeks, so you don't need to do this so frequently.
License: MIT License For Chrome, you can use the cookies.txt extension.
Author: fengleizZZ
Maintainers
fengleizZZ
Classifiers
Development Status
4 - Beta For Firefox, you can use the Export Cookies extension.
Environment
Console
Intended Audience
End Users/Desktop
License
OSI Approved :: MIT License
Operating System
OS Independent
Programming Language
Python :: 3 :: Only
2. Enroll
Topic
Navigate to homepage of the course/specialization you'd like to download, you can see its slug at the address
Education
bar. Enroll it.
3. Download
$ dl_coursera --help
usage: dl_coursera_run.py [-h] [--version] [--cookies COOKIES] --slug SLUG
[--isSpec] [--n-worker {1,2,3,4,5}]
[--outdir OUTDIR] --how
{builtin,curl,aria2,aria2-rpc,uget,dummy}
[--generate-input-file]
[--aria2-rpc-url ARIA2_RPC_URL]
[--aria2-rpc-secret ARIA2_RPC_SECRET]
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--cookies COOKIES path of the `cookies.txt`
--slug SLUG slug of a course or a specializtion (with @--isSpec)
--isSpec indicate that @--slug is slug of a specialization
--n-worker {1,2,3,4,5}
the number of threads used to crawl webpages. Default:
3
--outdir OUTDIR the directory to save files to. Default: `.'
--how {builtin,curl,aria2,aria2-rpc,uget,dummy}
how to download files. builtin (NOT recommonded): use
the builtin downloader. curl: invoke `curl` or
generate an "input file" for it (with @--generate-
input-file). aria2: invoke `aria2c` or generate an
"input file" for it (with @--generate-input-file).
aria2-rpc (HIGHLY recommonded): add downloading tasks
to aria2 through its XML-RPC interface. uget
(recommonded): add downloading tasks to the uGet
Download Manager
--generate-input-file
when @--how is curl/aria2, indicate that to generate
an "input file" for that tool, rather than to invoke
it
--aria2-rpc-url ARIA2_RPC_URL
url of the aria2 XML-RPC interface. Default:
`http://localhost:6800/rpc'
--aria2-rpc-secret ARIA2_RPC_SECRET
authorization token of the aria2 XML-RPC interface
If the command succeeds, you shall see `Done :-)`. If some UNEXPECTED errors
occur, try decreasing the value of @--n-worker and/or removing the directory
@--outdir. For more information, visit `https://github.com/feng-lei/dl_coursera`.
Examples
The "curl" downloader can be used in two di erent ways: invoking curl , or generating an input file for curl .
invoke curl
The "aria2" downloader can be used in two di erent ways: invoking aria2c , or generating an input file for aria2c .
invoke aria2c
## on Windows
$ uget --version | more
## on Linux
$ uget-gtk --version
# start uGet
## on Windows
$ uget
## on Linux
$ uget-gtk &
$ dl_coursera --cookies path/to/cookies.txt --slug mathematical-thinking --outdir mt --how uge
Developed and maintained by the Python community, for the Python community.
Donate today!
English español français 日本語 português (Brasil) українська Ελληνικά Deutsch 中文 (简体) русский עברית
Google
Pingdom Object Storage and Sentry AWS DataDog Fastly DigiCert StatusPage
Monitoring Download Analytics Error logging Cloud computing Monitoring CDN EV certificate Status page