摘要:
一、xpath 1.安装xpath pip install lxml 2.简单使用 获取根目录下的html标签对象: import requests from lxml import etree res = requests.get("https://www.bilibili.com/") html 阅读全文
posted @ 2020-05-15 15:57
风间悠香
阅读(281)
评论(0)
推荐(0)
摘要:
一、requests库相关概念 1.requests和urllib的区别 1)requests的底层实现就是urllib 2)requests在python2和python3比较通用,类、方法等基本一样。 3)requests更简单易用 4)requests能够自动帮我们解压响应数据 2.reque 阅读全文
posted @ 2020-05-15 15:29
风间悠香
阅读(346)
评论(0)
推荐(0)
摘要:
一、简单使用requests库 1.安装requests库 pip install requests 2.使用GET请求 import requests response = requests.get("https://www.baidu.com") # 使用get请求https://www.bai 阅读全文
posted @ 2020-05-15 13:29
风间悠香
阅读(918)
评论(0)
推荐(0)

浙公网安备 33010602011771号