- selenium
- pillow
- baidu_api
- toml
- Chrome浏览器及 ChromeDriver
在项目根目录下执行pip install -r requirement.txt
ChromeDriver下载地址: https://sites.google.com/a/chromium.org/chromedriver/home 根据浏览器版本下载对应的文件并将其放在python安装目录环境下。
在终端执行chromedriver
,如果出现以下信息,
Starting ChromeDriver 103.0.5060.53 (a1711811edd74ff1cf2150f36ffa3b0dae40b17f-refs/branch-heads/5060@{#853}) on port 9515
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
就表示成功了。
使用PyCharm打开本项目,点击运行。
需先配置config.toml
,填入教务系统的用户名和密码即可。