
爬虫
文章平均质量分 85
一定会成为大牛的小宋
这个作者很懒,什么都没留下…
展开
-
requests.get和urlopen的比较(通俗易懂)
requests.get和urlopen的比较urlopen详解见:https://blog.youkuaiyun.com/qq_41845823/article/details/119465293requests.get详解见:https://blog.youkuaiyun.com/qq_41845823/article/details/119516178urlopen简介urlopen是urllib库中的一个方法,简单用法为urllib.request.urlopen(url),返回的是一个http.client.H原创 2021-08-08 17:16:22 · 4070 阅读 · 0 评论 -
request库详解
Request库request库中文文档:https://docs.python-requests.org/zh_CN/latest/user/quickstart.html视频链接:https://www.bilibili.com/video/BV1Us41177P1?p=2实例引入import requestsresponse = requests.get("https://www.baidu.com/")print(type(response))print(type(response原创 2021-08-08 16:13:37 · 10609 阅读 · 2 评论 -
urllib.request.urlopen详解
Urllib是python内置的HTTP请求库:urllib.request 请求模块urllib.error 异常处理模块urllib.parse url解析模块urllib.robotparser robots.txt解析模块python2中urllib2库中的很多方法在python3中被移至urllib.request库中。urllib.request.urlopenurllib.request.urlopen(url, data=None, [timeout, ]*, caf原创 2021-08-06 23:32:41 · 12477 阅读 · 0 评论