logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

4.1 使用Python获取网页源代码

1)第三方库的安装a.在线安装pip install 第三方库名b.本地安装下载对应版本的.whl文件,然后cd到文件目录下,通过pip install xxx.whl2)使用requests获取网页源代码a. GET方式import requestshtml = requests.get('网址')#得到一个Response对象html_bytes = html.content#属性.conte

#python#爬虫
暂无文章信息