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

403: Forbidden while downloading YouTube videos #32542

Closed
5 tasks done
arunkumaraqm opened this issue Sep 4, 2023 · 9 comments · Fixed by #32638
Closed
5 tasks done

403: Forbidden while downloading YouTube videos #32542

arunkumaraqm opened this issue Sep 4, 2023 · 9 comments · Fixed by #32638

Comments

@arunkumaraqm
Copy link

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2021.12.17
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

$ youtube-dl -v https://www.youtube.com/watch?v=rsUTtpb3k-w
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=rsUTtpb3k-w']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.8.5 (CPython) - Linux-5.15.0-79-generic-x86_64-with-glibc2.10
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7
[debug] Proxy map: {}
[youtube] rsUTtpb3k-w: Downloading webpage
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1794, in _real_extract
    'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1012, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

I haven't been able to download any YouTube videos for close to two months because of 403 error. youtube-dl does seem to work 1% of the time though. (I don't mean it works for a particular video(s))

WRITE DESCRIPTION HERE

@khansaad1275
Copy link

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2021.12.17
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

$ youtube-dl -v https://www.youtube.com/watch?v=rsUTtpb3k-w
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=rsUTtpb3k-w']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.8.5 (CPython) - Linux-5.15.0-79-generic-x86_64-with-glibc2.10
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7
[debug] Proxy map: {}
[youtube] rsUTtpb3k-w: Downloading webpage
ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1794, in _real_extract
    'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 1012, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

I haven't been able to download any YouTube videos for close to two months because of 403 error. youtube-dl does seem to work 1% of the time though. (I don't mean it works for a particular video(s))

WRITE DESCRIPTION HERE

They have actually posted a lot about this, like how to change few lines in your code to make it work, but i made tools based on yt-dlp and yotube dl and now I don't wanna write code to change these few lines in people who are using my tools 🥲.

So if someone have a fork that is working then it will be extremely helpful.

@dirkf
Copy link
Contributor

dirkf commented Sep 4, 2023

Where is this 403 error in the log? The log shows a known solved problem listed in #30839.

@latel
Copy link

latel commented Sep 5, 2023

oh you are using an outed version 2021.12.17, check out #30839

@dirkf
Copy link
Contributor

dirkf commented Sep 5, 2023

Obviously the version of the program that you are using in your tool is failing.

... I don't know much about YouTube dl.

Probably best to fix that if you are maintaining a tool that uses it.

Read #30839, #31530, #31585 to start. Also #32499 may be relevant.

@latel

This comment was marked as off-topic.

@Mart-Bogdan
Copy link

Where is this 403 error in the log? The log shows a known solved problem listed in #30839.

How so it is fixed? it's not even #30839 as you pointed, but #31530 and it is not marked as solved.

and it definitely happend for me on latest version just now (with this URL https://youtu.be/FKv8NqgD51E?si=lyR5REGteiunQSvL )

duplicate #31530

@Mart-Bogdan
Copy link

version 2021.12.17 is latest one published, according to github tags.

@dirkf
Copy link
Contributor

dirkf commented Sep 23, 2023

Read #30839 properly and it solves your (@Mart-Bogdan) problem including #32542 (comment) and
#32542 (comment) which indicate that you didn't do so before.

This is irrelevant to OP's stated issue, unlike OP's log.

@dhyanKaro

This comment was marked as spam.

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

Successfully merging a pull request may close this issue.

6 participants