r0oth3x49 / acloud-dl

A cross-platform python based utility to download courses from acloud.guru for personal offline use.
MIT License
350 stars 141 forks source link

unable to find file 'file_containing_cookie.txt'. #95

Closed asish6600 closed 1 year ago

asish6600 commented 2 years ago

unable to find file 'file_containing_cookie.txt'.

EROR4IK commented 2 years ago

'file_containing_cookie.txt' is any txt file with _auth0token cookie. To get this cookie, you need to:

  1. Be logged in
  2. Open any course
  3. Start this course
  4. Inspect the page (right-click on any free space, choose "Inspect")
  5. In the opened menu, navigate to "Application"
  6. In the "Storage" section go-to cookies, filter out auth0_token
  7. Copy the "Value" section of it
  8. Create an empty txt file(for simplicity it may be created in the same folder as acloud-dl.py)
  9. Paste in the file _auth0token=Value
  10. Save it
  11. Profit!

_file_containingcookie.txt example: auth0_token=eyJhblRfqijbjbDEYvxZrznFChblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDE

Hope I could help.

alexyvic commented 1 year ago

'file_containing_cookie.txt' is any txt file with _auth0token cookie. To get this cookie, you need to:

  1. Be logged in
  2. Open any course
  3. Start this course
  4. Inspect the page (right-click on any free space, choose "Inspect")
  5. In the opened menu, navigate to "Application"
  6. In the "Storage" section go-to cookies, filter out auth0_token
  7. Copy the "Value" section of it
  8. Create an empty txt file(for simplicity it may be created in the same folder as acloud-dl.py)
  9. Paste in the file _auth0token=Value
  10. Save it
  11. Profit!

_file_containingcookie.txt example: auth0_token=eyJhblRfqijbjbDEYvxZrznFChblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDEhblRfqijbjbDE

Hope I could help.

Thanks, this is very detailed than Readme

r0oth3x49 commented 1 year ago

@EROR4IK thanks for explaining it.