|

楼主 |
发表于 2020-6-22 15:43:01
|
显示全部楼层
Traceback (most recent call last):
File "I:\Python\爬取贴吧.py", line 35, in <module>
get_img(open_url(url))
File "I:\Python\爬取贴吧.py", line 31, in get_img
urllib.request.urlretrieve(each, filename, None)
File "I:\Python\lib\urllib\request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "I:\Python\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "I:\Python\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "I:\Python\lib\urllib\request.py", line 548, in _open
'unknown_open', req)
File "I:\Python\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "I:\Python\lib\urllib\request.py", line 1387, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib.error.URLError: <urlopen error unknown url type: "http>
运行之后提示这个 |
|