python 爬虫学习笔记 运行结果 文章目录 python 爬虫学习笔记 request hearders 加cookie在get请求 cookies的字典处理 post请求 jsonpath使用 jsonpath 例子 xpath速览 lxml 使用 lxml 例子 selenium 使用 selenium 例子 图像识别 tesseract request import requests url = "https://baidu.com" r = requests.get(url) r.encoding = "utf8"