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

Facebook Download Is No More Working #5476

Closed
mtalhaakram opened this issue Apr 20, 2015 · 7 comments
Closed

Facebook Download Is No More Working #5476

mtalhaakram opened this issue Apr 20, 2015 · 7 comments

Comments

@mtalhaakram
Copy link

@mtalhaakram mtalhaakram commented Apr 20, 2015

Hello,
Facebook download is no more working, seems like they have updated mechanism at their end. Please advise if there is any fix available for it so far or not.

Thanks & Regards,
Talha

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 20, 2015

It still works, at least for https://www.facebook.com/video.php?v=637842556329505&fref=nf. Please post the full verbose output with -v option

@warnecke
Copy link

@warnecke warnecke commented Apr 20, 2015

It looks like Facebook is publishing video content using a new URL format...instead of linking to the https://www.facebook.com/video.php?v=[VIDEO-ID] videos are now linked as https://www.facebook.com/[USERNAME]/videos/[VIDEO-ID].

Here's the verbose as requested:

09:59:30 user@system:~/tmp$ youtube-dl -v http://www.facebook.com/gary/videos/10153163439258350/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.facebook.com/gary/videos/10153163439258350/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.04.17
[debug] Python version 2.7.8 - Linux-3.16.0-34-generic-x86_64-with-Ubuntu-14.10-utopic
[debug] exe versions: rtmpdump 2.4
[debug] Proxy map: {}
[generic] 10153163439258350: Requesting header
[redirect] Following redirect to https://www.facebook.com/gary/videos/10153163439258350/
[generic] 10153163439258350: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 10153163439258350: Downloading webpage
[generic] 10153163439258350: Extracting information
[redirect] Following redirect to /gary/videos/10153163439258350/?_fb_noscript=1
WARNING: The url doesn't specify the protocol, trying with http
[generic] ?_fb_noscript=1: Requesting header
WARNING: Could not send HEAD request to http:///gary/videos/10153163439258350/?_fb_noscript=1:
[generic] ?_fb_noscript=1: Downloading webpage
ERROR: Unable to download webpage: (caused by URLError('no host given',))
File "/home/user/bin/youtube-dl/youtube_dl/extractor/common.py", line 314, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/home/user/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1678, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/home/user/bin/youtube-dl/youtube_dl/utils.py", line 613, in http_open
req)
File "/usr/lib/python2.7/urllib2.py", line 1136, in do_open
raise URLError('no host given')

Cheers, /b

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 20, 2015

Yes, and I've fixed it in c625669 and 53faa3c. Such urls can be downloaded in the next version of youtube-dl. If you need the feature now, you can try the lastest git commit or use the old URL format https://www.facebook.com/video.php?v=10153163439258350

@mtalhaakram, did you encounter the same problem?

@mtalhaakram
Copy link
Author

@mtalhaakram mtalhaakram commented Apr 20, 2015

@warnecke
Copy link

@warnecke warnecke commented Apr 20, 2015

Thanks for the quick fix, @yan12125!

Cheers, /b

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 20, 2015

@mtalhaakram, all of the three above URL formats are supported since 53faa3c. Please wait patiently for the new version or try the latest git commit. If you have pip or pip.exe, you can try the following command to install the latest git version: (Warning: the following step may cause conflicts between the stable version and the git version)

pip install --user git+https://github.com/rg3/youtube-dl/

Now I'm closing this issue because it's already solved.

@yan12125 yan12125 closed this Apr 20, 2015
@mtalhaakram
Copy link
Author

@mtalhaakram mtalhaakram commented Apr 20, 2015

Thanks @yan12125

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
3 participants
You can’t perform that action at this time.