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

Error downloading yahoo video: Unable to download webpage: <urlopen error [Errno 8] nodename nor servname provided, or not known> #1521

Closed
jcsk opened this issue Sep 28, 2013 · 9 comments
Assignees
Labels

Comments

@jcsk
Copy link

@jcsk jcsk commented Sep 28, 2013

jeffrey$ ~/dev/youtube/youtube-dl -t http://screen.yahoo.com/saturday-night-live-backstage-joe-000000791.html
[Yahoo] 000000791: Downloading webpage
[Yahoo] 000000791: Downloading info webpage
ERROR: Unable to download webpage: <urlopen error [Errno 8] nodename nor servname provided, or not known>

jeffrey$ python --version
Python 2.7.2

jeffrey$ ~/dev/youtube/youtube-dl --version
2013.09.24.2

jeffrey$ ~/dev/youtube/youtube-dl -t http://screen.yahoo.com/saturday-night-live-backstage-joe-000000791.html
[Yahoo] 000000791: Downloading webpage
[Yahoo] 000000791: Downloading info webpage
ERROR: Unable to download webpage: <urlopen error [Errno 8] nodename nor servname provided, or not known>

jeffrey$ ~/dev/youtube/youtube-dl --verbose http://screen.yahoo.com/saturday-night-live-backstage-joe-000000791.html
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://screen.yahoo.com/saturday-night-live-backstage-joe-000000791.html']
[debug] youtube-dl version 2013.09.24.2
[debug] Python version 2.7.2 - Darwin-12.5.0-x86_64-i386-64bit
[debug] Proxy map: {}
[Yahoo] 000000791: Downloading webpage
[Yahoo] 000000791: Downloading info webpage
ERROR: Unable to download webpage: <urlopen error [Errno 8] nodename nor servname provided, or not known>
File "/Users/jeffrey/dev/youtube/youtube-dl/youtube_dl/extractor/common.py", line 133, in _request_webpage
return compat_urllib_request.urlopen(url_or_request)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 394, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 412, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1199, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1174, in do_open
raise URLError(err)

@yasoob
Copy link
Contributor

@yasoob yasoob commented Sep 28, 2013

Interesting. I am getting the same error but if I open the url through requests I am able to successfully open it:

>>> import requests
>>> html = requests.get('http://screen.yahoo.com/saturday-night-live-backstage-joe-000000791.html')
>>> html
<Response [200]>
@ghost ghost assigned jaimeMF Sep 28, 2013
@jaimeMF jaimeMF closed this in 9c15e9d Sep 28, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 28, 2013

Fixed, thanks for the report!

@yasoob the webpage was being downloaded fine, the problem was with the second request
info_url = 'http://cosmos.bcst.yahoo.com/rest/v2/pops;lmsoverride=1;outputformat=mrss;cb=974419660;id=%s;rd=news.yahoo.com;datacontext=mdb;lg=KCa2IihxG3qE60vQ7HtyUy' % video_id

@yasoob
Copy link
Contributor

@yasoob yasoob commented Sep 28, 2013

Ah okay 👍

@jcsk
Copy link
Author

@jcsk jcsk commented Sep 29, 2013

Thanks for the quick turn around. Youtube-dl is awesome!

@orangeoval
Copy link

@orangeoval orangeoval commented Dec 24, 2013

I have a similar issue:

[~/scripts]: python --version
Python 2.7.1

[~/scripts]: youtube-dl --version
2013.12.11.2

[~/scripts]: youtube-dl -x url https://myspace.com/spiderbags/music/song/bad-complexion-39008443-41298278
WARNING: The url doesn't specify the protocol, trying with http
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 18, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 723, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 713, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 877, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 487, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 521, in process_ie_result
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 471, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 134, in extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 149, in _real_extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 131, in _test_redirect
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 394, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 412, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1199, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1174, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>

I am not sure why it throws an error that the "url doesn't specify the protocol". Running the command without the "url" argument causes the script to hang, as follows:

[~/scripts]: youtube-dl -x https://myspace.com/spiderbags/music/song/bad-complexion-39008443-41298278 --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-x', 'https://myspace.com/spiderbags/music/song/bad-complexion-39008443-41298278', '--verbose']
[debug] youtube-dl version 2013.12.11.2
[debug] Python version 2.7.1 - Darwin-11.4.2-x86_64-i386-64bit
[debug] Proxy map: {}

@yasoob
Copy link
Contributor

@yasoob yasoob commented Dec 24, 2013

@orangeoval what is -x?

@orangeoval
Copy link

@orangeoval orangeoval commented Dec 24, 2013

Damn you guys are quick around here. The -x is to post process the output into an audio-only file. From the help/documentation:

"Post-processing Options:
-x, --extract-audio convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)"

I do have an up-to-date ffmpeg, and running this same argument structure works for youtube videos, just not this myspace one. I get the same results without the "-x" fag as I do when using it, for what its worth.

@phihag
Copy link
Contributor

@phihag phihag commented Dec 24, 2013

@orangeoval Your issue is completely separate. When you add url, that means that you want to download literally the URL url, which fails, because, well, url does not contain a protocol (like http or https).

I've opened a new issue for that (note that this issue is about yahoo video) in #2040. At the very bottom of the page there, there is a button to subscribe, please do that.

@orangeoval
Copy link

@orangeoval orangeoval commented Dec 24, 2013

Sorry about that. Still new to this process here, thanks for the quick and helpful feedback.

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