400 Bad Request #341
Comments
Same here, I get this and also in the next try the error 429 (Too many requests). |
you can use cookies based authentication until i fix the issue. |
This works. I am downloading one of my courses. I understand they might be worried about piracy, and so they're blocking automatic downloads, but if you own a course you must have the right to download it |
how can I get my cookies? it's actually on the readme. Sorry. The command becomes python udemy-dl.py [courselink] -k [yourcookiesfile.txt] |
cookie is also not working for me |
Same here, even with cookie not working. |
Cookies work fine for me 🍪 |
Cookies WorkaroundCookies do work, but the cookie parser is very fragile with no documentation and no debug output. So I stepped through the source code and studied the logic. Make a text file (cookie.txt) with this exact format:
You need the "Cookie:" tag, space separators, '=' delimiter, and absolutely no line breaks. Use the cookie switch: --cookie=cookie.txt To get the actual values, you can use a cookie chrome extension. |
yes ,, this working with me :-) |
Traceback (most recent call last): I still get this problem, |
Same issue with me |
I think you should give exact location of cookie.txt Example:
|
Have done that too, but doesnt work |
i have already mention the guide to extract cookies via firefox & chrome in readme file. the error you are facing is user error and not related to the tool you can follow the guide on readme how to use the tool. |
Hello @ALL i am firefox user and this is working for me |
since you used windows I guess need to used back slash for the paths instead of slash. |
Hello, @r0oth3x49 I hope this can be fixed soon. thanks and more power! |
@anagnam This is solved by cookies. Please check the closed issues on how to do that. It's also present in the README. |
@varunchandak I don't think so. I've tried using cookies and it worked on the first 3 chapters. Then after that, a series of error occurs so the total 14 chapter course was not downloaded in full. only the first 3 chapters were downloaded and were not actually finished. |
I had same 400 issue, then used cookies and it works! had to fix #347 before. |
Worked also for me. Thanks! |
the file must name cookies not cookie |
Thank @r0oth3x49! You're the champ ! |
Hello all. I was able to create cookies, but latter it process failed. [] : Trying to login using cookies ... Please let me know if I am doing something wrong. |
pull the repository. i have recently merged a patch request for this error. |
Thank you its working now :) |
@ronkiwest your udemy-dl is old, clone again. if you login with cookie, you only need -k command and cookie.txt file |
Thanks @brundidge , updated udemy-dl , it worked. |
how to get youraccesstokenvalue and yourclientid |
@ipsgit2018 Guide |
Awesome. Glad I could help. Happy learning everyone :) |
Really nice workaround. Working as of today :) |
|
@ahmedbokhari7 follow guide in readme : https://github.com/r0oth3x49/udemy-dl#extracting-cookies--request-headers |
thanks :) its done |
@ahmedbokhari7 Check your access_token, i think it's broken, maybe you added or deleted some characters by mistake, should be 40 chars. Make a new cookie file again is the best option. |
Great! this work fine |
USING FIREFOX:
|
Note that udemy changes access token after we select any course to view. When we login to udemy and select any course to view its videos, access token gets changed and thus becomes different from the one which is set when we have not selected any course. Thus you have to use the access token which is set after you have selected the course (same course which you have to download via command line) |
@shubhamjain-tolexo no, it doesn't change at all, stay the same because it's just a random string to identify you between requests after login. Unless you change your password or expired after 1 month or you logged out |
But when i logged in, i took the access token value from the browser, then used it to download the course via command line, but i got error: |
@shubhamjain-tolexo I tried what you said but it doesn't change at all, i moved from course to course and it still the same. Maybe your cookie method has some bug in it. |
Maybe, it has some bug. I am using chrome "edit this cookie" extension. |
@shubhamjain-tolexo Here is my method: #351 (comment) |
Wow! what a wonderful and step-by-step guide you have made. Well i checked again, but now i am also getting the same value for the access_token. Don't know how i get different values before? Maybe i have made some mistake before. Maybe i have copied value of some other key before. Not sure. |
THX it's help me to )) |
the problem You guys are facing is you might are saving the name wrong like cookies.txt |
From today, I stop downloading the courses.
I have tried many times without success ...
The text was updated successfully, but these errors were encountered: