youtube-dl: AttributeError when trying to download a video from Facebook
Checklist
- I’m reporting a broken site support issue
- 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 bug reports including closed ones
- I’ve read bugs section in FAQ
Verbose log
E:\Pobrane>youtube-dl --cookies cookies.txt -v https://www.facebook.com/stoneheart.sakamaki/videos/702961650712479
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies', 'cookies.txt', '-v', 'https://www.facebook.com/stoneheart.sakamaki/videos/702961650712479']
[debug] Encodings: locale cp1250, fs utf-8, out utf-8, pref cp1250
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.9.7 (CPython) - Windows-10-10.0.22557-SP0
[debug] exe versions: none
[debug] Proxy map: {}
[facebook] 702961650712479: Downloading webpage
Traceback (most recent call last):
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\Scripts\youtube-dl.exe\__main__.py", line 7, in <module>
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\__init__.py", line 475, in main
_real_main(argv)
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\__init__.py", line 465, in _real_main
retcode = ydl.download(all_urls)
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 2068, in download
res = self.extract_info(
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 808, in extract_info
return self.__extract_info(url, ie, download, extra_info, process)
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\extractor\common.py", line 534, in extract
ie_result = self._real_extract(url)
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\extractor\facebook.py", line 680, in _real_extract
return self._extract_from_url(real_url, video_id)
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\extractor\facebook.py", line 499, in _extract_from_url
parse_attachment(attachment)
File "C:\Users\nolemretaW\AppData\Local\Programs\Python\Python39\lib\site-packages\youtube_dl\extractor\facebook.py", line 480, in parse_attachment
media = attachment.get(key) or {}
AttributeError: 'NoneType' object has no attribute 'get'
Description
When trying to download a video from private Facebook group, I get an Attribute error saying that object has no attribute get. cookies.txt are extracted from Facebook cookies via a Firefox extension (tested with --username and --password as well)
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 17 (1 by maintainers)
Regardless of all the above, the original issue looks like the same problem as #30650 and #30474.
does right clicking on the video give you the option to save the video ?? you may have to have a browser add-on that allows right click.
I would have to make that account + join the group, which you could also do.
If you still want access to my account, give access to yours, then I will give access to mine.
Yes you ARE because I DON’T know you, and you are a stranger to me.
No?
You can join the group that the video is on, and it would be faster than me making a brand new account.
And also you can’t see that owners of this repo are deleting your comments because you’re trying to get into my personal Facebook account? Or you’re too dumb (because I can’t put your way of thinking in any other way) to see that and still think that people are giving their accounts to some random strangers on the internet
If you really would want to help, you would just join the group (it’s in Polish though, but I would be happy to help with joining), and help me, not try to get my Facebook account (with my personal info, even though you don’t care about my personal information)
If you are a programmer (judging by “I have put countless hours into developing several extractors” you are), you should also know the basics of security of your accounts, and one of the most basic things is to not give your login and passwords to sites to random people on the internet.
Yeah it is
And also as I remember correctly, you don’t want to help anymore so why do you give a shit about this issue XD and try to persuade me into giving my account away
You could just join the group. But you’re too lazy to do that and try to get someone’s account on Facebook. https://www.google.com/search?channel=nrow5&client=firefox-b-d&q=why+you+shouldn’t+give+your+account+info+to+some+random+people+on+the+internet <-- read this
Still it’s my PERSONAL account, and also with that account I use a password that I use with a lot of sites so yeah XD. You can just join the group the video is on. I would also need to join it from a dummy account so no diffrence XD