|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
F:\Python\python.exe F:/Python/经典练习/爬煎蛋网的妹子
Traceback (most recent call last):
File "F:/Python/经典练习/爬煎蛋网的妹子", line 78, in <module>
download_mm()
File "F:/Python/经典练习/爬煎蛋网的妹子", line 65, in download_mm
page_num = int(get_page(url))
File "F:/Python/经典练习/爬煎蛋网的妹子", line 16, in get_page
html = url_open(url).decode('utf-8')
File "F:/Python/经典练习/爬煎蛋网的妹子", line 10, in url_open
response = urllib.request.urlopen(url)
File "F:\Python\lib\urllib\request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "F:\Python\lib\urllib\request.py", line 532, in open
response = meth(req, response)
File "F:\Python\lib\urllib\request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "F:\Python\lib\urllib\request.py", line 570, in error
return self._call_chain(*args)
File "F:\Python\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "F:\Python\lib\urllib\request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
Process finished with exit code 1
报这样的错是怎么回事啊? |
|