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 403 #1391

Closed
6 of 7 tasks
sindzicat opened this issue Oct 23, 2021 · 2 comments
Closed
6 of 7 tasks

Udemy 403 #1391

sindzicat opened this issue Oct 23, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists site-bug Issue with a specific website

Comments

@sindzicat
Copy link

Checklist

Region

Russia, any other country via VPN

Description

yt-dlp --cookies-from-browser chrome:"C:\Users\Sindzicat\AppData\Local\Google\Chrome\User Data\Profile 3" --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36" --verbose "https://www.udemy.com/course/bootstrap-5-responsive-web-design-and-development"
[debug] Command-line config: ['--cookies-from-browser', 'chrome:C:\\Users\\Sindzicat\\AppData\\Local\\Google\\Chrome\\User Data\\Profile 3', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36', '--verbose', 'https://www.udemy.com/course/bootstrap-5-responsive-web-design-and-development']
[Cookies] Extracting cookies from chrome
[debug] Extracting cookies from: "C:\Users\Sindzicat\AppData\Local\Google\Chrome\User Data\Profile 3\Cookies"
[Cookies] Extracted 1972 cookies from chrome
[debug] Encodings: locale cp1251, fs utf-8, out utf-8, err utf-8, pref cp1251[debug] yt-dlp version 2021.10.22 (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg N-102938-g40ce7aec09-20210709, ffprobe N-102938-g40ce7aec09-20210709
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [udemy:course] Extracting URL: https://www.udemy.com/course/bootstrap-5-responsive-web-design-and-development
[udemy:course] course: Downloading webpage
ERROR: [udemy:course] course: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
  File "yt_dlp\extractor\common.py", line 702, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3252, in urlopen
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default

Verbose log

$ yt-dlp -Uv --cookies-from-browser chrome:"C:\Users\Sindzicat\AppData\Local\Google\Chrome\User Data\Profile 3" --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36" --verbose "https://www.udemy.com/course/bootstrap-5-responsive-web-design-and-development"
[debug] Command-line config: ['-Uv', '--cookies-from-browser', 'chrome:C:\\Users\\Sindzicat\\AppData\\Local\\Google\\Chrome\\User Data\\Profile 3', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36', '--verbose', 'https://www.udemy.com/course/bootstrap-5-responsive-web-design-and-development']
[Cookies] Extracting cookies from chrome
[debug] Extracting cookies from: "C:\Users\Sindzicat\AppData\Local\Google\Chrome\User Data\Profile 3\Cookies"
[Cookies] Extracted 1971 cookies from chrome
[debug] Encodings: locale cp1251, fs utf-8, out utf-8, err utf-8, pref cp1251[debug] yt-dlp version 2021.10.22 (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg N-102938-g40ce7aec09-20210709, ffprobe N-102938-g40ce7aec09-20210709
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
yt-dlp is up to date (2021.10.22)
[debug] [udemy:course] Extracting URL: https://www.udemy.com/course/bootstrap-5-responsive-web-design-and-development
[udemy:course] course: Downloading webpage
ERROR: [udemy:course] course: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
  File "yt_dlp\extractor\common.py", line 702, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3252, in urlopen
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default
@sindzicat sindzicat added site-bug Issue with a specific website triage Untriaged issue labels Oct 23, 2021
@sindzicat
Copy link
Author

I changed https to http:

yt-dlp --cookies-from-browser chrome:"C:\Users\Sindzicat\AppData\Local\Google\Chrome\User Data\Profile 3" --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36" --verbose "http://www.udemy.com/course/bootstrap-5-responsive-web-design-and-development"
[debug] Command-line config: ['--cookies-from-browser', 'chrome:C:\\Users\\Sindzicat\\AppData\\Local\\Google\\Chrome\\User Data\\Profile 3', '--user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36', '--verbose', 'http://www.udemy.com/course/bootstrap-5-responsive-web-design-and-development']
[Cookies] Extracting cookies from chrome
[debug] Extracting cookies from: "C:\Users\Sindzicat\AppData\Local\Google\Chrome\User Data\Profile 3\Cookies"
[Cookies] Extracted 1973 cookies from chrome
[debug] Encodings: locale cp1251, fs utf-8, out utf-8, err utf-8, pref cp1251[debug] yt-dlp version 2021.10.22 (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg N-102938-g40ce7aec09-20210709, ffprobe N-102938-g40ce7aec09-20210709
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [udemy:course] Extracting URL: http://www.udemy.com/course/bootstrap-5-responsive-web-design-and-development
[udemy:course] course: Downloading webpage
[udemy:course] 3310234: Downloading course curriculum
[download] Downloading playlist: 3310234
[udemy:course] playlist 3310234: Collected 198 videos; downloading 198 of them
[download] Downloading video 1 of 198
[debug] [udemy] Extracting URL: https://www.udemy.com/course/learn/v4/t/lecture/20915598
[udemy] 20915598: Downloading webpage
[udemy] 20915598: Downloading lecture JSON
[udemy] 20915598: Downloading lecture JSON
ERROR: [udemy] 20915598: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
  File "yt_dlp\extractor\common.py", line 702, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3252, in urlopen
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default

@pukkandan
Copy link
Member

duplicate of #1164

@pukkandan pukkandan added duplicate This issue or pull request already exists and removed triage Untriaged issue labels Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists site-bug Issue with a specific website
Projects
None yet
Development

No branches or pull requests

2 participants