-
使用
pip
命令安装依赖pip install -r requirement.txt
-
安装
edge
浏览器,注意安装的版本我这里使用的是
98.0.1108.50
有能力的可以尝试把代码改成使用
chrome
浏览器的,chrome
会更方便一点。 -
下载
edge
浏览器的驱动下载链接 https://developer.microsoft.com/zh-cn/microsoft-edge/tools/webdriver/
注意要下载和浏览器版本相同的驱动
-
修改
config.py
driver_path
本机 edge
驱动的路径show_browser
是否显示浏览器界面,可选 true
,false
-
登录
QQ
,因为用的是selenium
,不太好搞验证码,所以是模拟点击QQ
登录从而登录微校园。一定要确认自己可以通过QQ
登录华中大微校园 -
命令行运行
python main.py > log.txt 2> err.txt
把运行过程中的日志信息输出到
log.txt
,把错误信息输出到err.txt
,命令行输出的都是一些调试工具的信息,不用管。如果运行错误,可以尝试多运行几次。也可以改用
pycharm
运行。
-
Notifications
You must be signed in to change notification settings - Fork 0
luobuyu/HUST-yqtb
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
华中科技大学每日健康上报,疫情填报。
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published