Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
facebook extractor misleading reports missing login information #25709
Comments
|
example broken url: youtube-dl should follow this url from the response: |
|
|
|
I suffer from the very same issue. |
|
What worked for me (using Firefox) was to right click on a video that had this issue and select "Show video URL", and then copy and use that. |
|
I have been using that too, but it won't work if the video is from a
non-public group and you're not using credentials. In my case, using
credentials is not working either.
Tolga
…On Sat, 4 Jul 2020 at 14:07, abcdefg30 ***@***.***> wrote:
What worked for me (using Firefox) was to right click on a video that had
this issue and select "Show video URL", and then copy and use that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#25709 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMIOXUAQSHQFTHXBHZCAD3RZ4EQLANCNFSM4OA3RFDA>
.
|
|
I have the same problem with this video: https://www.facebook.com/groups/1567682496877142/permalink/2629899080655473/ |
Checklist
Verbose log
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.06.16.1
[debug] Python version 3.8.2 (CPython) - Linux-5.4.0-37-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2
[debug] Proxy map: {}
[facebook] 3058694450820098: Downloading webpage
[facebook] 3058694450820098: Downloading webpage
ERROR: This video is only available for registered users. Use --username and --password or --netrc to provide account credentials.
Traceback (most recent call last):
File "lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
ie_result = ie.extract(url)
File "lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 530, in extract
ie_result = self._real_extract(url)
File "lib/python3.8/site-packages/youtube_dl/extractor/facebook.py", line 482, in _real_extract
_, info_dict = self._extract_from_url(
File "lib/python3.8/site-packages/youtube_dl/extractor/facebook.py", line 351, in _extract_from_url
self.raise_login_required()
File "lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 934, in raise_login_required
raise ExtractorError(
youtube_dl.utils.ExtractorError: This video is only available for registered users. Use --username and --password or --netrc to provide account credentials.
urls = ['https://www.facebook.com/groups/794657180557181/permalink/3058694450820098/']
Description
The problem is that pages in facebook with 'permalinks' in their urls are not
parsed correctly, and this ends up into a call to
youtube_dl/extractor/facebook.py line 351
self.raise_login_required()
it is true that the webpage contains '>You must log in to continue',
but still it's not actually true that you need to login, as this depends on
the redirection url.
BTW, I've done the correct parsing, but I'm hesitant to commit the fix,
as I don't know policies here enough and it also requires changes in
the facebook._real_extract() method in order to handle a redirection.
And if the redirection points to a video on a different platform, then
the fix (which I made it for myself) is even more complex as it has to
go all the way up to the YoutubeDL.download(self, url_list) function.