Package: coursera-helper
coursera-helpercoursera-helperis forked fromcoursera-dlwhich is no longer maintained.IntroductionInstallation instructionsInstallation (recommended)Manual InstallationDocker containerBefore the startQuick StartList coursesDownload courseMore download optionsUse configuration fileTroubleshootingchina-issuesReporting issuesDisclaimerIntroductioncoursera-helperis a tool for downloading Coursera.org videos and naming them..It is platform independent, and should work fine under Unix (Linux, BSDs etc.), Windows or Mac OS X.Installation instructionscoursera-helperrequires Python 3 and very few other dependencies. (As of October 2023,coursera-helperpassed the test of Python versions 3.8, 3.9, 3.10, and 3.11).Installation (recommended)Opening a terminal and typing the command If you have installed Python:pip install coursera-helperManual Installationpip install git+https://github.com/csyezheng/coursera-helper.gitDocker containerYou can run this application viaDockerif you want. Just install docker and rundocker run --rm -it -v \
    "$(pwd):/courses" \
     csyezheng/coursera-helper --cauth <CAUTH-value> <course name>Please note that it will prompt that unable to find the image locally, please wait patiently for downloading.Please note thatwhen running in docker mode, only the--cauthparameter can be passed for authentication, and username, password, and--browser-cookieparameters are not accepted.The course files will be downloaded to your current directory.Before the startcoursera-helpersupports four authentication methods:CAUTH (recommended)Just use the--cauth CAUTH-value-from-browseroption when running the program.How to get the cauth value?Browser cookiesJust use the--browser-cookieoption when running the program.Automatically extract CAUTH value from the browser cookie. If this method fails, please use other authentication methods.Username and PasswordJust use the-u <user> -p <pass>options when running the program.Please note that this method will open the browser, you may have to click on the reCAPTCHA.netrc FileJust use the--netrcoptions when running the program.Quick StartRun the following command to query the usage and options:coursera-helper --helpList coursesRun the following command to query the courses in which you are enrolled:coursera-helper --cauth <CAUTH> --list-coursesorcoursera-helper --browser-cookie --list-coursesorcoursera-helper -u <email or username> --list-coursesDownload courseFrom there, choose the course you are interested in, copy its course name and use it
in the following command:coursera-helper -u <email or username> <COURSE NAME>Your downloaded videos will be placed in current directory, but you can also choose another destination with the--pathargument.More download optionsGeneral download:coursera-helper --cauth <CAUTH> <COURSE NAME>Specify download location:coursera-helper --cauth <CAUTH> --path <PATH> <COURSE NAME>Download with subtitles:coursera-helper --cauth <CAUTH> --subtitle-language en,zh-CN|zh-TW <COURSE NAME>Specify video resolution：coursera-helper --cauth <CAUTH> --video-resolution 720p <COURSE NAME>Download with quizzes:coursera-helper --cauth <CAUTH> --download-quizzes <COURSE NAME>Download with notebooks:coursera-helper --cauth <CAUTH> --download-notebooks <COURSE NAME>Use configuration fileAlternatively, if you want to store your preferred parameters (which might also include your username and password), create a file namedcoursera-dl.confwhere the script is supposed to be executed, with the following format:--username <user>
--password <pass>
--subtitle-language en,zh-CN|zh-TW
--download-quizzes
--download-notebooks
--video-resolution 720p
--download-delay 10
--cauth <cauth value>If you have created a file namedcoursera-dl.conf, you just download course with command:coursera-helper <COURSE NAME>TroubleshootingCAUTHFind your coursera CAUTH:Open and login tohttps://www.coursera.org/Right-click on the touchpad or mouse until you findinspect.Go to Applications > Cookies (and click dropdown) > clickhttps://www.coursera.org/> find and click CAUTH > Copy value CAUTH.Chrome:Open the browser and login tohttps://www.coursera.org/Open the last DevTools panelWindows or Linux: PressF12on the keyboard. Or press theCtrl+Shift+Ikeys.Mac: PressFn+F12on the keyboard. Or press theCmd+Option+Ikeys.OpenApplication>Storage>Cookiesand selecthttps://www.coursera.org/.find and click CAUTH > Copy value CAUTHFirefox:Open the browser and login tohttps://www.coursera.org/Open the last DevTools panelWindows or Linux: PressF12on the keyboard. Or press theCtrl+Shift+Ikeys.Mac: PressFn+F12on the keyboard. Or press theCmd+Option+Ikeys.OpenStorage>Cookiesand selecthttps://www.coursera.org/.find and click CAUTH > Copy value CAUTHchina-issuesIf you are from China and you're having problems downloading videos, adding52.84.167.78   d3c33hcgiwev3.cloudfront.netin the hosts file (/etc/hostsorC:\Windows\System32\drivers\etc)Flush DNS with this command in the terminal.ipconfig /flushdnsReporting issuesBefore reporting any issue please follow the steps below:Verify that you are running the latest version of all the programs.  Use the following command if in doubt:pip install --upgrade coursera-helperIf the problem persists, feel free toopen an issuein our bug tracker, please fill the issue template withas much information as
possible.Disclaimercoursera-helperis meant to be used only for your material that coursera gives you access to download. We do not encourage any use that violates their Terms Of Use.