摘要: Host,Connection,Accept,Accept-Encoding,Accept-Language,User-Agent,Referrer这7个请求头。 Host 服务器根据Host这一行中的值来确定本次请求的是哪个具体的网站 Connection 数据传输完成了保持TCP连接不断开(不发 阅读全文
posted @ 2018-09-28 15:15 软件实习生--古月 阅读(336) 评论(0) 推荐(0) 编辑
摘要: urllib 是Python内置的HTTP请求库 urllib.request 请求模块 urllib.error 异常处理模块 urllib.parse url解析模块 urllib.robotparser robots.txt解析模块 urllib.request 请求模块 urllib.err 阅读全文
posted @ 2018-09-28 10:56 软件实习生--古月 阅读(166) 评论(0) 推荐(0) 编辑