摘要: 判断场景: 1、content-type : multipart/form-data 2、表单webforms为下图所示: 3、接口文档 使用: pip install requests-toolbelt 或 pip install requests-toolbelt --index-url htt 阅读全文
posted @ 2020-03-18 23:55 dearddu 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 如何快速从html页面解析出我们想要的数据 爬虫基本入门方法 场景: 1、当接口返回接口为xml 2、想从页面上解析想要的数据文本 使用 pip3 install lxml import request from lxml import etree r = requests.post(url,dat 阅读全文
posted @ 2020-03-18 23:41 dearddu 阅读(1250) 评论(0) 推荐(0) 编辑
摘要: 有时会做项目迁移 或代码上传github上别人拿到下载依赖包,这个时候可以便捷操作 pip导出项目依赖包: > cd 项目文件 > pip freeze > requirements.txt 会在项目根目录生成requirements.txt文件 安装依赖包: 1、 > cd 项目根目录 > pip 阅读全文
posted @ 2020-03-18 16:19 dearddu 阅读(353) 评论(0) 推荐(0) 编辑