# Coursera-dl HTTPError: 400

{% embed url="<https://youtu.be/gQ9a8C6SUBc>" %}

### Solution

#### Assumptions

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 Obtain **`CAUTH`** token for the course

* [x] Navigate to the `class home`
* [x] Right click > select `Inspect`

<div align="left"><img src="https://3526924997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MIgCXXRd_zYwMrU-RaQ%2Fuploads%2FeG8ycYiPfqQBHviwITen%2Finspect-element.png?alt=media&#x26;token=d98b7807-23ad-4b80-b0f7-ffda9287dd9e" alt="Select Inspect option"></div>

* [x] Select `Application`

![](https://3526924997-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MIgCXXRd_zYwMrU-RaQ%2Fuploads%2F5cJEKvll2nwF6w7RwEyJ%2Fcauth-image.png?alt=media\&token=7d26e77e-c431-4697-b0bf-b722aa5bd72e)

* [x] Take note of the `CAUTH`

![CAUTH token](https://3526924997-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIgCXXRd_zYwMrU-RaQ%2F-MVoWN3bzZbUoSCCwAzK%2F-MVoZ15O5KCfJea93GdV%2Fimage.png?alt=media\&token=daaf8398-1de0-45fd-924c-b99a3a6ea3e9)

#### Snippet

```bash
# General command
coursera-dl -ca 'CAUTH' [CLASS-NAME]

# Example
coursera-dl -ca 't7OlopZp-vgTjHpFalsljlskfdlfakf' cloud-infrastructure-design-process
```

### References

1. <https://github.com/coursera-dl/coursera-dl/issues/702>
