integrated assistance of traceint
Project description
tracient-book-sduwh
山东大学(威海)我去图书馆抢座脚本
请认真阅读许可证
许可证(请以LICENSE文件为准,此处仅提供阅读)
禁止盈利许可证
2021/12/1 v1.0
在本许可证保护下,所有包含本项目代码(包括部分代码)的项目,不允许盈利,
可免费自己使用或提供他人使用,但不允许盈利或收取费用。
请在国家法律许可的范围内使用本项目代码,如您使用本代码,则默认您已知晓是
否在法律允许范围之内,项目作者不承担任何因超出法律范围使用本项目代码带来
的法律纠纷。
使用方法
目前本项目代码可以实现明日预约、实时/定时捡漏、退座
目前代码重构以及更改通用性中,随时可能更改使用方法
main分支为稳定可用分支
docker
快速部署服务器版(详见docker分支)
docker run -d -p 8000:8000 humorh/traceint_server
python版本
开发时所用版本为3.8.2
点击下载安装包:3.8.2官网安装包
官网下载链接下载慢可将链接复制到迅雷创建下载任务
经测试3.10.1会导致找不到适合的ddddocr依赖
包
pip install -r requirements.txt
明日预约
- 抓包得到图书馆post请求header的cookie
- 调用
traceint中的seat_reserve函数,参数详见docstring - 冲杯咖啡等待即可
实时捡漏
- 抓包得到图书馆post请求header的cookie
- 调用
traceint中的seat_pickup函数,参数详见docstring - 冲杯咖啡等待即可
退座
- 抓包得到图书馆post请求header的cookie
- 调用
traceint中的seat_cancel函数,参数详见docstring - 冲杯咖啡等待即可
签到
- 抓包得到图书馆post请求header的cookie
- 调用
traceint中的credit_sign函数,参数详见docstring - 冲杯咖啡等待即可
uml设计
用例图
时序图
预约
捡漏
退座
签到
scrum敏捷开发
迭代
功能完善1
- 退座代码
- 保存每日爬取验证码图片
验证码问题
- 比较ddddocr与mugle_ocr准确率
重构
- 设计用例图
- 重构代码
- 注释
- 根据代码扫描结果修改代码
- 画时序图
功能完善2
- 签到代码嵌入闲时捡漏与明日预约
- 签到代码
- 查看排队状态
- 预约代码加入排队延迟继续预定
封装
- 推送pypi
- tkintr封装
- 后端
- 前端
- docker打包
认证
- 通过wechatSESSID获取cookie
都看到这里了不给个star嘛?
微信OAuth认证尝试
请求获取oauth url与实际请求oauth url对比
请求得到
https://open.weixin.qq.com/connect/oauth2/authorize
?appid=wx2996d437cd442527
&redirect_uri=https://wechat.v2.traceint.com/index.php/url/auth.html
?r=https://wechat.v2.traceint.com/index.php/reserve/index.html
?f=wechat
&n=617f6d050f140
&response_type=code
&scope=snsapi_userinfo
&state=1
&connect_redirect=1
#wechat_redirect
实际请求
https://open.weixin.qq.com/connect/oauth2/authorize
?appid=wx2996d437cd442527
&redirect_uri=https://wechat.v2.traceint.com/index.php/url/auth.html
?r=https://wechat.v2.traceint.com/index.php/reserve/index.html
?f=wechat
&n=617f6d050f14
&response_type=code
&scope=snsapi_userinfo
&state=1
&connect_redirect=1
&uin=MjAwNTcxNTA3OA%3D%3D
&key=c39cf953308ace2d1d5dfaab91543e6b5ca955eb40d997fa3aaf8652bad19b0f1e77c908c52f7be9c83b12e7452079ce795fcc8f44bd6dcb272646c0575754771afd4b8299ca67b14d64fc9fdbf547fc01016c67d4aae21fa7b0be744806aa4faa84ec3d8f1c77bfa41c6dcd108a6d5a2524b5e1378c8a1c45f772c5c35d3e3c
&version=63040026
&pass_ticket=yxHHNjeZdF9nA6MWULlbzgEPps4czteK399zvDw0%2BOQMh6m95nCR19kubhSzaoCn
其中新加uin、key、 version、 pass_ticket四个参数,uin和version相对固定,key和pass_ticket为随时生成。
带有wechatSESS_ID和SERVERID发送请求则返回该cookie
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file traceint-1.3.6.tar.gz.
File metadata
- Download URL: traceint-1.3.6.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05d8c16d02cd9ef215e822af26b9052a9966083e3131c97b97b964a7d1856f3f
|
|
| MD5 |
691531e01d20454296f43949b8ed44f7
|
|
| BLAKE2b-256 |
5a4866af1168c036248168c1146cf816543c64b406e8fe8acce9d85b286e79f6
|
File details
Details for the file traceint-1.3.6-py3-none-any.whl.
File metadata
- Download URL: traceint-1.3.6-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f45d1bcd979163e196ac2190313e6388b57373fbe5fcc36f8480c93259d2489
|
|
| MD5 |
fdbe3f724d4167d79a0ce47527a67c24
|
|
| BLAKE2b-256 |
1b72578eeff287f40adcd0456999f28cd4457bde01655e5643a53344e77cbefb
|