是不是这个工具现在已经没用了?每次都是 connection refused
Icy@linux-rsud:~> you-get http://v.youku.com/v_show/id_XNzE5MDAxMjg4.html
Video Site: Youku.com
Title: 暴走大事件 12
Type: Flash video (video/x-flv)
Size: 418.09 MiB (438397421 Bytes)
Downloading 暴走大事件 12.flv ...
Traceback (most recent call last):
File "/usr/lib/python3.3/site-packages/you_get/extractor/youku.py", line 215, in youku_download
youku_download_playlist(url, output_dir=output_dir, merge=merge, info_only=info_only)
File "/usr/lib/python3.3/site-packages/you_get/extractor/youku.py", line 196, in youku_download_playlist
assert ids != ]
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.3/urllib/request.py", line 1248, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib64/python3.3/http/client.py", line 1065, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python3.3/http/client.py", line 1103, in _send_request
self.endheaders(body)
File "/usr/lib64/python3.3/http/client.py", line 1061, in endheaders
self._send_output(message_body)
File "/usr/lib64/python3.3/http/client.py", line 906, in _send_output
self.send(msg)
File "/usr/lib64/python3.3/http/client.py", line 844, in send
self.connect()
File "/usr/lib64/python3.3/http/client.py", line 822, in connect
self.timeout, self.source_address)
File "/usr/lib64/python3.3/socket.py", line 435, in create_connection
raise err
File "/usr/lib64/python3.3/socket.py", line 426, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/you-get", line 9, in <module>
load_entry_point('you-get==0.3.28.2', 'console_scripts', 'you-get')()
File "/usr/lib/python3.3/site-packages/you_get/extractor/__main__.py", line 92, in main
script_main('you-get', any_download, any_download_playlist)
File "/usr/lib/python3.3/site-packages/you_get/common.py", line 899, in script_main
download_main(download, download_playlist, args, playlist, output_dir, merge, info_only)
File "/usr/lib/python3.3/site-packages/you_get/common.py", line 784, in download_main
download(url, output_dir = output_dir, merge = merge, info_only = info_only)
File "/usr/lib/python3.3/site-packages/you_get/extractor/__main__.py", line 85, in any_download
m.download(url, output_dir=output_dir, merge=merge, info_only=info_only)
File "/usr/lib/python3.3/site-packages/you_get/extractor/youku.py", line 218, in youku_download
youku_download_by_id(id, title=title, output_dir=output_dir, merge=merge, info_only=info_only)
File "/usr/lib/python3.3/site-packages/you_get/extractor/youku.py", line 145, in youku_download_by_id
download_urls(urls, title, ext, total_size, output_dir, merge = merge)
File "/usr/lib/python3.3/site-packages/you_get/common.py", line 553, in download_urls
url_save(url, filepath, bar, refer = refer, is_part = True, faker = faker)
File "/usr/lib/python3.3/site-packages/you_get/common.py", line 298, in url_save
file_size = url_size(url, faker = faker)
File "/usr/lib/python3.3/site-packages/you_get/common.py", line 235, in url_size
response = request.urlopen(url)
File "/usr/lib64/python3.3/urllib/request.py", line 156, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python3.3/urllib/request.py", line 469, in open
response = self._open(req, data)
File "/usr/lib64/python3.3/urllib/request.py", line 487, in _open
'_open', req)
File "/usr/lib64/python3.3/urllib/request.py", line 447, in _call_chain
result = func(*args)
File "/usr/lib64/python3.3/urllib/request.py", line 1274, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib64/python3.3/urllib/request.py", line 1251, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>