python爬虫基础-http协议
来源:互联网 发布:淘宝发v任务要钱吗 编辑:程序博客网 时间:2024/06/06 05:09
http协议
1.1Headers是请求头
Request Headers是发送过去的请求,里面包含了完整的http请求数据,在之后我们爬取网站页面时会用到。
GET是获取方式;
Host是远程主机地址;
Connection客户端希望的联机方式;
Accept是客户端能接受的媒体类型;
User-Agent标示浏览器的身份,爬虫爬取时不可或缺的部分;
Accept-Encoding客户端能接受的编码类型;
Accept-Language我能接受哪种语言的显示;
Response Headers是服务器端的应答
HTTP/1.1 200 OK 应答版本号 应答码 是否成功
Server 应答服务器
Content-Type 应答的内容是什么数据
Last-Modified 网页上次修改时间
Content-Encoding 应答方式是什么编码
Content-Length 应答数据的大小
应答码
2xx: 成功
200: OK
206 Partial Content
3xx: 重定向
301 Moved Permanently
303 See Other
304 Not Modified
4xx:客户端错误
400 Bad Request
404 Not Found
5xx: 服务端错误
500 Internal Server Error
501 Not Implemented
1.2Preview是预览
1.3Response应答的内容
1.4Timing时间
1 0
- python爬虫基础-http协议
- 爬虫基础之http协议
- Python 爬虫教程 2 - HTTP协议
- python爬虫和http请求协议
- Python爬虫:HTTP协议、Requests库
- python 爬虫知识点 (http 基础)
- python_爬虫http协议
- python爬虫-->爬虫基础
- Python 爬虫入门(二) HTTP协议初步
- Python 爬虫入门(三) HTTP协议请求方式
- python爬虫时http协议以及实现代码
- Python爬虫入门基础
- python爬虫基础
- Python爬虫基础
- Python爬虫基础实例教程
- python爬虫基础A
- python爬虫基础学习
- Python爬虫基础-1
- Linux NAT组建虚拟机局域网并且局域网内各虚拟机能上网
- Solr查询参数sort(排序)
- golang判断是否本机ip
- UIView 的动画效果
- hdu1207(递推)
- python爬虫基础-http协议
- ubuntu安装jdk7和jdk8
- 笔试要点
- mysql 视图的简单使用
- Gradle 1.12用户指南翻译——第四十九章. Build Dashboard 插件
- php7扩展开发[6] 调试Segmentation fault
- window.location.href("url") 无法在chrome和Firefoxz中使用
- 开始思考
- 设置Ubuntu是否启动图形化界面