Shandong University (Weihai) I went to the library to grab a seat script
Due to the school changing the seat selection system and no longer using "Go to the Library", this project will be suspended indefinitely starting from January 7, 2022.
Please read the license carefully
禁止盈利许可证
2021/12/1 v1.0
在本许可证保护下,所有包含本项目代码(包括部分代码)的项目,不允许盈利,
可免费自己使用或提供他人使用,但不允许盈利或收取费用。
请在国家法律许可的范围内使用本项目代码,如您使用本代码,则默认您已知晓是
否在法律允许范围之内,项目作者不承担任何因超出法律范围使用本项目代码带来
的法律纠纷。
This repo has been packaged and uploaded to pip. You can directly use the following instructions to install the library and then import the package for use.
pip install traceint
Currently, the code of this project can realize reservations for tomorrow, real-time/scheduled pick-up, and seat withdrawal.
The code is currently being refactored and changed for generality, and the usage may change at any time.
The main branch is a stable and available branch
Quickly deploy server version (see docker
branch for details)
docker run -d -p 8000:8000 humorh/traceint_server
The version used during development is 3.8.2
Click to download the installation package: 3.8.2 official website installation package
If the official website download link downloads slowly, you can copy the link to Xunlei to create a download task.
After testing, 3.10.1
will cause the appropriate ddddocr
dependency to not be found.
pip install -r requirements.txt
seat_reserve
function in traceint
. See docstring for parameters.seat_pickup
function in traceint
. See docstring for parameters.seat_cancel
function in traceint
. See docstring for parameters.credit_sign
function in traceint
. See docstring for parameters.reserve
Pick up leaks
Withdraw your seat
Sign in
Certification
You’ve seen this, why don’t you give it a star?
Comparison between requesting oauth url and actually requesting oauth url
Request to get
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
actual request
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
Among them, four new parameters, uin
, key
, version
and pass_ticket
are added. uin
and version
are relatively fixed, and key
and pass_ticket
are generated at any time.
Sending a request with wechatSESS_ID
and SERVERID
returns this cookie