日常报错

1

raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

 

爬虫报错,待解决

 

已解决,是请求头被网站限制,多弄几个请求头就可以

 2

self._output(request.encode('ascii'))

解决:路径有中文

3

with open(toPath, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory

#解决

记住写入时要字符串格式,还有就是路径前面要加r

4

TypeError: 'NoneType' object is not iterable

解决:

没有返回值  return没写

5

爬虫爬着爬着断了出这错误

urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>

解决:

IP被封了。换请求头或者IP

 6

Pool进程池调用子进程失败,父进程无法结束,子进程没进行

待解决

7

进程间通信息,子循环进入不了,出现这问题

PermissionError: [WinError 5] 拒绝访问。
待解决

8

打印时候出错
not enough arguments for format string
已解决:
打印时多个属性时记得加括号

posted @ 2019-03-13 20:13  飞飞阿  阅读(491)  评论(0编辑  收藏  举报