web crawling(plus3) errors solution

Posted 兔子的尾巴_Mini

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了web crawling(plus3) errors solution相关的知识,希望对你有一定的参考价值。

301 moved permanently

302 found

303 not modified

400 bad request

401 unauthorized

403 forbidden

404 not found

500 internal server error

501 not implementedh

URLError >HTTPError

URLError: not linked the internal server: no web connection; remote url not exit; HTTPError

******************************************

import urllib.error
import urllib.request
try:
urllib.request.urlopen("http://blog.cssdn.net")
except urllib.error.URLError as e:
if hasattr(e,"code"):
print(e.code)
if hasattr(e,"reason"):
print(e.reason)

 









以上是关于web crawling(plus3) errors solution的主要内容,如果未能解决你的问题,请参考以下文章

web crawling(plus5) crawling wechat

web crawling(plus5) news crawling and proxy

SharePoint - “Error while crawling LOB contents”错误的解决方案

SharePoint - “Error while crawling LOB contents”错误的解决方案

web crawling

web crawling(plus1)