Python
Python相关
NameExist
温故而知新!
展开
-
python,requests库的基本使用,requests中文文档
Requests: 让 HTTP 服务人类。 Requests 允许你发送纯天然,植物饲养的 HTTP/1.1 请求,无需手工劳动。你不需要手动为 URL 添加查询字串,也不需要对 POST 数据进行表单编码。Keep-alive 和 HTTP 连接池的功能是 100% 自动化的,一切动力都来自于根植在 Requests 内部的urllib3。 中文文档 https://2.python-requests.org/zh_CN/latest/ 获取源码github git clone git://gith.原创 2020-09-14 22:36:31 · 1754 阅读 · 0 评论 -
python内置http请求库urllib基本使用,发送请求,添加请求头,添加cookie信息
urllib是python自带标准库,可直接使用 引入用到的module import urllib.request #发送请求 import urllib.parse import http.cookiejar #cookie 发送get请求 #汉字或者会隔断url的特殊字符需要用urllib.request.quote(),url编码 #http://localhost/get,springboot快速搭建个get接口@GetMapping(value = "get") response = url原创 2020-09-13 09:25:11 · 3023 阅读 · 0 评论