Coursera-dl HTTPError: 400
HTTPError: 400 Client Error: Bad Request for url: https://api.coursera.org/api/login/v3

Solution

Assumptions

  1. 1.
    If you are downloading https://www.coursera.org/learn/[CLASS-NAME]/home/info For example: class home: https://www.coursera.org/learn/cloud-infrastructure-design-process/home/info Here [CLASS-NAME] = cloud-infrastructure-design-process
  2. 2.
    Obtain CAUTH token for the course
    • Navigate to the class home
    • Right click > Inspect element
    • Select Application
    • Take note of the CAUTH
CAUTH token

Snippet

1
# General command
2
coursera-dl -ca 'CAUTH' [CLASS-NAME]
3
4
# Example
5
coursera-dl -ca 't7OlopZp-vgTjHpFalsljlskfdlfakf' cloud-infrastructure-design-process
Copied!

References

Last modified 8mo ago
Copy link