|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- File "E:\测试\101.py", line 7, in <module>
- html=urllib.request.urlopen(url).read().decode('UTF-8')
- File "D:\Python34\lib\urllib\request.py", line 161, in urlopen
- return opener.open(url, data, timeout)
- File "D:\Python34\lib\urllib\request.py", line 469, in open
- response = meth(req, response)
- File "D:\Python34\lib\urllib\request.py", line 579, in http_response
- 'http', request, response, code, msg, hdrs)
- File "D:\Python34\lib\urllib\request.py", line 507, in error
- return self._call_chain(*args)
- File "D:\Python34\lib\urllib\request.py", line 441, in _call_chain
- result = func(*args)
- File "D:\Python34\lib\urllib\request.py", line 587, in http_error_default
- raise HTTPError(req.full_url, code, msg, hdrs, fp)
- urllib.error.HTTPError: HTTP Error 403: Forbidden
复制代码
这个错误是怎么造成的
我google搜索了一下
很多人都让使用代理,我使用代理以后还是一样的错误..
|
|