学习笔记(03):21天搞定分布式Python网络爬虫-urllib库-基本使用

立即学习:https://edu.csdn.net/course/play/24756/280646?utm_source=blogtoedu

urllib库:

urlopen函数:

url:请求的url

data:请求的data,设置以后可以使得它成为post请求

返回值:返回是网页的

http.client.HTTPResponse对象,这个对象是一个类文件句柄对象,读取可用到,read,readline,readlines,getcode

发布了3 篇原创文章 · 获赞 0 · 访问量 33

猜你喜欢

转载自blog.csdn.net/weixin_45661655/article/details/104275859
今日推荐