# fillform **Repository Path**: daeee-goose/fillform ## Basic Information - **Project Name**: fillform - **Description**: 学校疫情填报爬虫 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-08-07 - **Last Updated**: 2021-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Fillform : 自动填写网页表格 * 原理 模拟真实用户 进行`登陆 → 选择表单 → 填写数据` ## 启动前置要求 * 本项目需要安装`python3`、`Google chrome` * 需要安装`webdriver`驱动 * 需要pip安装包`selenium` ## 安装教程 * python3安装博客连接: [python3安装教程](https://blog.csdn.net/weixin_40844416/article/details/80889165) * pip安装`selenium`包 >在命令提示符中输入`pip install selenium` * Google chrome 官网下载地址: https://www.google.cn/intl/zh-CN/chrome/ * Webdriver安装教程 > 查看谷歌浏览器的版本 打开 chrome → 设置 → 关于chrome > ![Chrome版本](https://gitee.com/daeee-goose/fillform/raw/master/chrome.jpg) 打开 [下载链接 ](https://chromedriver.storage.googleapis.com/index.html) > 找到对应版本 ![ChromeWebdriver](https://gitee.com/daeee-goose/fillform/raw/master/driver.png) > 下载完成后解压 放到本程序的文件夹中 ## 使用教程 * 运行`fillForm.py`即可 * 运行`rest.py`重置信息 ## 说明 * 关于登陆 > 学校OA系统用户登录有两种 > 1.输入账号密码 > 2.使用二维码扫描登录 > 提醒:频繁启动程序可能会导致账户被锁定。当用户被锁定时,可以使用方式2来进行登录 > 请勿频繁启动程序,启动一次即可 * 使用过程中若其他出现问题,请联系作者 * 作者qq:470413346 * 欢迎大家学习交流 * **本项目仅供学习以及技术交流,请勿用于其它目的,否则后果自负。** ## 可能的错误 #### 1.Webdriver未放到本程序文件夹中 ``` Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home ``` 解决办法: 下载对应的版本的Webdriver放到**本程序文件夹**中 #### 2. Webdriver版本错误 ``` Message: session not created: This version of ChromeDriver only supports Chrome version XX Current browser version is XXXX with binary path XXXXX ``` 解决办法: 下载**对应的版本**的Webdriver放到本程序文件夹中 ## 相关链接 * [python官网](https://www.python.org/) * [python3安装教程](https://blog.csdn.net/weixin_40844416/article/details/80889165) * [Google chrome 官网]( https://www.google.cn/intl/zh-CN/chrome/) * [Webdriver下载链接](https://chromedriver.storage.googleapis.com/index.html)