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

Cannot download Facebook videos #2505

Closed
ghost opened this issue Mar 4, 2014 · 1 comment
Closed

Cannot download Facebook videos #2505

ghost opened this issue Mar 4, 2014 · 1 comment

Comments

@ghost
Copy link

@ghost ghost commented Mar 4, 2014

youtube-dl fails for Facebook videos. It told me to report it to this site, so I am:

Here, I use my Facebook username and password:

myname@computer:~$ youtube-dl -u xxxxxxxxxxxxx@gmail.com -p xxxxxxxxxx -v https://www.facebook.com/photo.php?v=10100415889945344
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-u', '', '-p', '', '-v', 'https://www.facebook.com/photo.php?v=10100415889945344']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.03.03
[debug] Python version 2.7.4 - Linux-3.8.0-22-generic-x86_64-with-Ubuntu-13.04-raring
[debug] Proxy map: {}
[facebook] Logging in
ERROR: Unable to extract lsd; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 493, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 161, in extract
self.initialize()
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 156, in initialize
self._real_initialize()
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 92, in _real_initialize
self._login()
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 54, in _login
lsd = self._search_regex(r'"lsd":"(\w*?)"', login_page, u'lsd')
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 360, in _search_regex
raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract lsd; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

Same thing if I don't use the username and password:

myname@computer:$ youtube-dl https://www.facebook.com/photo.php?v=10100415889945344
[facebook] 10100415889945344: Downloading webpage
ERROR: The video is not available, Facebook said: "The page you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may have expired, or you may not have permission to view this page."
myname@computer:
$ youtube-dl -v https://www.facebook.com/photo.php?v=10100415889945344
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://www.facebook.com/photo.php?v=10100415889945344']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.03.03
[debug] Python version 2.7.4 - Linux-3.8.0-22-generic-x86_64-with-Ubuntu-13.04-raring
[debug] Proxy map: {}
[facebook] 10100415889945344: Downloading webpage
ERROR: The video is not available, Facebook said: "The page you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may have expired, or you may not have permission to view this page."
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 493, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 162, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/facebook.py", line 111, in _real_extract
expected=True)
ExtractorError: The video is not available, Facebook said: "The page you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may have expired, or you may not have permission to view this page."

phihag added a commit that referenced this issue Mar 4, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Mar 4, 2014

I've fixed the user login in version 2014.03.04.1. Type sudo youtube-dl -U to update. Note that the error message is displayed in the webbrowser as well, so it may be justified.

@phihag phihag closed this Mar 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.