随笔分类 -  python爬虫

摘要:## 一、基本使用 ### 1.1 安装 ```python #下载浏览器驱动 Selenium3.x调用浏览器必须有一个webdriver驱动文件 chrom:https://chromedriver.storage.googleapis.com/index.html?path=2.35/ 或者 阅读全文
posted @ 2022-03-07 14:54 彬彬l 阅读(55) 评论(0) 推荐(0) 编辑
摘要:需求: 某大学远程教育自动刷课脚本,每20分钟刷一次。 修改学习平台和超级鹰打码平台的用户名密码。 安装对应的模块 pip install PIL 或者 pip install Pillow pip install selenium 下载chromderiver驱动,放到d:/chromedrive 阅读全文
posted @ 2022-03-04 14:17 彬彬l 阅读(202) 评论(0) 推荐(0) 编辑
摘要:一、requests模块基本使用 1.1 get请求爬取静态页面数据 import requests #1.爬取搜狗页面 #涉及到的知识点:参数动态化,UA伪装,乱码的处理 word = input('enter a key word:') url = 'https://www.sogou.com/ 阅读全文
posted @ 2022-03-02 22:18 彬彬l 阅读(181) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示