Skip to content

Commit

Permalink
添加说明以及Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
HengY1Cola committed Nov 4, 2022
1 parent 3e29d79 commit 2ef76ea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# 学生健康打卡

> 目前已经支持微信但无法绕过 需要设置setting文件 有空我写一下新的姿势
<img src='https://img.shields.io/badge/Version-2.0.2-green' style='float:left; width:100px'/>
<img src='https://img.shields.io/badge/Version-2.0.3-green' style='float:left; width:100px'/>

`Jnu-StuHealth `模拟滑块实现打卡项目

Expand All @@ -12,7 +10,7 @@

因为验证码具有短暂的时效性,后改用了**生产者与消费者**模式,**即产即消**

最新 **已经支持绕过微信认证,并对新的验证码有不错的成功率**
最近**对拼图有不错的识别**,不建议个人使用,因为得每天上去下操作了

## 责任说明 😊

Expand Down Expand Up @@ -51,6 +49,8 @@ $ apt install firefox
# 切回去用户
$ su ubuntu
$ vim user_info.json # 编辑用户信息
# env: dev or pro; platform: mac or windows or linux
$ vim setting.json # 编辑配置选项(不开代理proxy不需要填写)
$ python app.py
```

Expand All @@ -67,6 +67,9 @@ $ python app.py
├── setting.json # 用于方便调试的以及后面的拓展
├── handlePackage.py # 处理发包
├── handleValidate.py # 处理验证码
├── handleWechat.py # 处理微信登陆
├── handleToken.py # 处理微信Token
├── handleProxy.py # 处理高匿代理
├── requirements.txt # 依赖文件
└── utils.py # 仓库
Expand Down
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
setting = readSettings()
env = setting.get("env", "linux")
platform = setting.get("platform", "pro")
if not (env == "pro" or env == "dev") or not (platform == "mac" or platform == "linux"):
if not (env == "pro" or env == "dev") or not (platform == "mac" or platform == "linux" or platform == "windows"):
raise Exception("No match ENV or PLATFORM. ENV: pro or dev | PLATFORM: mac or linux")

# 处理用户信息
Expand Down
Binary file added bin/geckodriver_windows.exe
Binary file not shown.
2 changes: 2 additions & 0 deletions handleValidate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def __init__(self, user_list, env, platform):
profile = webdriver.FirefoxProfile()
if platform == 'mac':
executable_path = os.path.join(BIN_DRIVER, 'geckodriver_mac')
elif platform == "windows":
executable_path = os.path.join(BIN_DRIVER, 'geckodriver_windows.exe')
else:
executable_path = os.path.join(BIN_DRIVER, 'geckodriver_linux')
BROWSER = webdriver.Firefox(executable_path=executable_path, options=options, firefox_profile=profile)
Expand Down
1 change: 0 additions & 1 deletion setting.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"env": "pro",
"platform": "linux",
"notice": "",
"proxy": {
"switch": "off",
"ip": "",
Expand Down

0 comments on commit 2ef76ea

Please sign in to comment.