python爬虫系列 —— 一些常用语法的实现总结
目录
一、requests模块用法
1、get请求
2、post请求
3、封装参数请求
二、爬虫解析器的三种方式
1、re模块
2、BeautifulSoup模块
3、xpath模块
三、selenium模块用法
1、基本用法
2、下拉框数据获取
3、登录验证码识别
一、requests模块用法
1、get请求
# 安装requests
# pip install requests
# 国内源
# pip install -i https://pypi.tuna.tsingh
原创
2022-02-09 18:07:14 ·
1366 阅读 ·
0 评论