-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Udemy] ERROR: Unable to download webpage: HTTP Error 403: Forbidden #29915
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
Your URL is not right. try
|
Same problem unfortunately:
|
If you want in private I can share my account details with a temporary password so you can try for yourself as well. |
@fhcaglayan may be an unescaped string from you password. You are not able to login. Try using cookies. this works on my machine
|
I have also tried with password temp1234... Might that also be unescaped?
…On Wed, 8 Sep 2021, 20:57 ppk ***@***.***> wrote:
@fhcaglayan <https://github.com/fhcaglayan> may be an unescaped string
from you password
Try using cookies.
this works on my machine
youtube-dl ^
--cookies udemy_cookies.txt ^
-o '%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s' ^
'YOURURL' ^
--verbose
^ splits large lines.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29915 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVP3EC5EVENRFKDJ7DBYZV3UA6WYHANCNFSM5DQQTDZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
I also have the same issue. I tried it with escaped username and password and also with cookie. I also tried the url with |
Duplicate of #29410. |
Hey everybody.I have almost the same problem.My problem is when i start to download, it downloads first video without any problems.It is on my hard disk.But when it tries to download second one it gives the error.I use cookie method and i export the cookie file by "Export Cookies" extension on Firefox.But on my case it gives another error when it tries to download second video.It says [udemy] 15779426: Downloading lecture JSON So i add my verbose output here. Verbose Output
So is there any solution to fix it?Or do i make any mistakes when writing my command?Thank you. |
That looks like #25656, not that it helps. |
Thank you for the response.I already removed that part of the link as it says to remove "/course/".but it didn't fix the problem.is there another solution to fix this?the interesting thing is everything works for first video and it downloads it.but for second one it gives the error. |
Try loading the failing video in your browser. That may reveal what the problem is. |
This comment was marked as duplicate.
This comment was marked as duplicate.
I was having the First I was able to resolve the 403 by logging into the website in chrome and then downloading the cookie file and including it with the '--cookie /path/to/cookie.txt' option. (See How do I pass cookies to youtube-dl). But then I was still getting the error:
It turns out this was caused because in my youtube-dl request I was passing Also to note, in the URL for a course in Udemy, i.e. Put all this together and a valid request should look like:
Where you replace the path to the cookie file, the path to the output directory, and the course name in the Udemy URL. Hope this helps :) |
This should be handled automatically. Could you post some
|
On reflection I can't see how stripping There seem to be two major problems here:
This happens despite trying Python versions from 2.7 to 3.9, removing the From the metadata, the site may possibly also be serving videos with DRM. It has an optional Download button that the Instructor can enable. It may be easier to ask for that. |
I'm getting this error as well. Have tried with -u/-p and with cookies, with and without /courses/
|
Looks like the same problem. If someone can work out how to fix Cloudflare's protocol violation (2nd bullet above) it could be possible to make further progress. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Thank you so much, your instructions worked like a charm! This should be highlighted on the main page! |
youtube-dl 2021.12.17 still has a problem using -u and -p however using --cookies is a workaround. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
See #30719. |
TESTED AND WORKS ON A MAC OS
|
This comment was marked as duplicate.
This comment was marked as duplicate.
Still duplicate of #29410. |
Checklist
Verbose log
Description
I was trying to download the learn advanced Java course which I have bought from Udemy for offline watching purposes. However, youtube-dl gives me an error when trying to do so.
The text was updated successfully, but these errors were encountered: