Skip to content
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] Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()) #33008

Closed
noobix opened this issue Dec 29, 2024 · 4 comments

Comments

@noobix
Copy link

noobix commented Dec 29, 2024

##Version and config
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2024.12.17 [d55d1f4] (single file build)
[debug] ** This version was built from the latest master code at https://github.com/ytdl-org/youtube-dl.
[debug] ** For support, visit the main site.
[debug] Python 3.4.4 (CPython AMD64 32bit) - Windows-10-10.0.22000 - OpenSSL 1.0.2d 9 Jul 2015
[debug] exe versions: none
[debug] Proxy map: {}
Usage: youtube-dl.exe [OPTIONS] URL [URL...]

youtube-dl.exe: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.

Issue at hand

Screenshot 2024-12-29 234512

I have purchased a course on udemy and I cant afford to stream online each time I want to revise. I found this resource and I fell in love but it will not work for me.
Please help me resolve this as soon as possible. Thanks

@dirkf
Copy link
Contributor

dirkf commented Dec 30, 2024

First, review the reporting guidelines and #30839. You may well be out of luck.

  1. To consider a problem we need a text transcript (so, not a screenshot) showing the failure with the -v (equivalently, --verbose) option included.

  2. Make sure you're testing with the latest nightly build, per READ THIS BEFORE OPENING A NEW ISSUE! THIS MEANS YOU! #30839.

  3. udemy extraction is probably not working, and the login function with --username ... --password ... almost certainly isn't (try --cookies ... with a cookie file exported from your logged-in browser session (see FAQ); see Unable to download video from Udemy 'HTTP Error 403: Forbidden' (login page) #29410 and related issues.

@dirkf dirkf changed the title Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()) [udemy] Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()) Dec 30, 2024
@noobix
Copy link
Author

noobix commented Dec 30, 2024

PS C:\Users\nanay\Desktop\project tmp\udemy-dl> youtube-dl --cookie 'C:/Users/nanay/Downloads/Principles of Library Management/cookies.txt' -o '~/your/path/%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/course/librarian-library-management/
[udemy:course] course: Downloading webpage
[udemy:course] 5693856: Downloading course curriculum
ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose option and include the complete output.
PS C:\Users\nanay\Desktop\project tmp\udemy-dl> youtube-dl --version
2024.12.17
PS C:\Users\nanay\Desktop\project tmp\udemy-dl> youtube-dl.exe -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2024.12.17 [d55d1f4] (single file build)
[debug] ** This version was built from the latest master code at https://github.com/ytdl-org/youtube-dl.
[debug] ** For support, visit the main site.
[debug] Python 3.4.4 (CPython AMD64 32bit) - Windows-10-10.0.22000 - OpenSSL 1.0.2d 9 Jul 2015
[debug] exe versions: ffmpeg 7.1-full_build-www.gyan.dev, ffprobe 7.1-full_build-www.gyan.dev
[debug] Proxy map: {}
Usage: youtube-dl.exe [OPTIONS] URL [URL...]

This happened when I used a cookie instead of username and password
PS C:\Users\nanay\Desktop\project tmp\udemy-dl> youtube-dl --cookie 'C:/Users/nanay/Downloads/Principles of Library Management/cookies.txt' -o '/your/path/%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/course/librarian-library-management/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookie', 'C:/Users/nanay/Downloads/Principles of Library Management/cookies.txt', '-o', '
/your/path/%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s', 'https://www.udemy.com/course/librarian-library-management/', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2024.12.17 [d55d1f4] (single file build)
[debug] ** This version was built from the latest master code at https://github.com/ytdl-org/youtube-dl.
[debug] ** For support, visit the main site.
[debug] Python 3.4.4 (CPython AMD64 32bit) - Windows-10-10.0.22000 - OpenSSL 1.0.2d 9 Jul 2015
[debug] exe versions: ffmpeg 7.1-full_build-www.gyan.dev, ffprobe 7.1-full_build-www.gyan.dev
[debug] Proxy map: {}
[udemy:course] course: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose option and include the complete output.
File "D:\a\ytdl-nightly\ytdl-nightly\youtube_dl\extractor\common.py", line 679, in _request_webpage
File "D:\a\ytdl-nightly\ytdl-nightly\youtube_dl\YoutubeDL.py", line 2500, in urlopen
File "C:\hostedtoolcache\windows\Python\3.4.4\x86\lib\urllib\request.py", line 470, in open
File "C:\hostedtoolcache\windows\Python\3.4.4\x86\lib\urllib\request.py", line 580, in http_response
File "C:\hostedtoolcache\windows\Python\3.4.4\x86\lib\urllib\request.py", line 508, in error
File "C:\hostedtoolcache\windows\Python\3.4.4\x86\lib\urllib\request.py", line 442, in _call_chain
File "C:\hostedtoolcache\windows\Python\3.4.4\x86\lib\urllib\request.py", line 588, in http_error_default

I have sent search everywhere but no luck is there any one that is able to download their paid courses

Screenshot 2024-12-30 194521

@dirkf
Copy link
Contributor

dirkf commented Dec 31, 2024

So,

... You may well be out of luck. ...

As described in the linked issue(s), extraction from this site is difficult to maintain because one or more skilled and motivated maintainers with access to site accounts are needed to keep up with the site's active changes that break it, and no-one has stepped up, either here or for yt-dlp/yt-dlp#1164.

Maybe you can find the content in your browser's dev tools, or other techniques that are out of scope for further discussion here, say making use of one of the quite high quality movie cameras found in many modern mobile phones.

@dirkf
Copy link
Contributor

dirkf commented Jan 9, 2025

Anyhow, duplicate of #30802.

@dirkf dirkf closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants