weijiuguo / wanmei_autocheck Goto Github PK
View Code? Open in Web Editor NEWwanmeixiaoyuan check-in(完美校园打卡)
License: MIT License
wanmeixiaoyuan check-in(完美校园打卡)
License: MIT License
是IP被封了吗?
服务器没有打卡成功
<class 'KeyError'>
Traceback (most recent call last):
File "main.py", line 31, in main
userInfo=getUserInfo(token)
File "main.py", line 88, in getUserInfo
return response.json()['userInfo']
KeyError: 'userInfo'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 223, in <module>
main()
File "main.py", line 62, in main
result=response
UnboundLocalError: local variable 'response' referenced before assignment
在本地成功打卡一次后,再次打卡时又出现上述问题。
没有deviceld 可以完成部署吗
campus\campus.py中的user_info是怎么得到呐,谢谢大佬
Run python3 main.py <<EOF
开始尝试为用户0421打卡
<class 'requests.exceptions.ConnectionError'>
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connection.py", line 353, in connect
conn = self._new_conn()
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f43fd0d5c10>: Failed to establish a new connection: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='server.17wanxiao.com', port=443): Max retries exceeded with url: /campus/cam_iface46/exchangeSecretkey.action (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f43fd0d5c10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 28, in main
campus = CampusCard(phone[index], password[index])
File "/home/runner/work/HAUT_autoCheck/HAUT_autoCheck/campus/campus.py", line 25, in init
self.exchange_secret()
File "/home/runner/work/HAUT_autoCheck/HAUT_autoCheck/campus/campus.py", line 66, in exchange_secret
verify=False
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='server.17wanxiao.com', port=443): Max retries exceeded with url: /campus/cam_iface46/exchangeSecretkey.action (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f43fd0d5c10>: Failed to establish a new connection: [Errno 110] Connection timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 222, in
main()
File "main.py", line 61, in main
result=response
UnboundLocalError: local variable 'response' referenced before assignment
Error: Process completed with exit code 1.
完美校园返回的所有班级depid信息还有吗
看了一下,打卡时都用的同一个人的deviceId,只有第一个人能打卡成功
开始尝试为用户xxxx打卡
{
"msg":"成功",
"code":"10000",
"data":1
}
10:25:22 xxxx打卡成功
-----------------------
开始尝试为用户xxxx打卡
getUserInfo ERR,Retry......
getUserInfo ERR,Retry......
getUserInfo ERR,Retry......
原作者的时间不能更改,更改后会导致10007错误,“不在打卡时间段内”,请大家用的时候注意
{
"msg":"业务异常",
"code":"10007",
"data":"请在正确的打卡时间打卡"
}
你好,请问我把时间改到了十一点,到现在run还显示打卡时间未到,设置的时间是0 3,然后我从新fork文件也更新不了,该如何解决,麻烦请告知,江湖救急
校外打卡需要抓包嘛?
<class 'requests.exceptions.ConnectionError'>
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connection.py", line 353, in connect
conn = self._new_conn()
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fedfb1f2d90>: Failed to establish a new connection: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='server.17wanxiao.com', port=443): Max retries exceeded with url: /campus/cam_iface46/exchangeSecretkey.action (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fedfb1f2d90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 28, in main
campus = CampusCard(phone[index], password[index])
File "/home/runner/work/HAUT_autoCheck/HAUT_autoCheck/campus/campus.py", line 25, in init
self.exchange_secret()
File "/home/runner/work/HAUT_autoCheck/HAUT_autoCheck/campus/campus.py", line 66, in exchange_secret
verify=False
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='server.17wanxiao.com', port=443): Max retries exceeded with url: /campus/cam_iface46/exchangeSecretkey.action (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fedfb1f2d90>: Failed to establish a new connection: [Errno 110] Connection timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 222, in
main()
File "main.py", line 61, in main
result=response
UnboundLocalError: local variable 'response' referenced before assignment
Error: Process completed with exit code 1.
开始尝试为用户打卡
<class 'IndexError'>
Traceback (most recent call last):
File "main.py", line 28, in main
campus = CampusCard(phone[index], password[index])
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 222, in
main()
File "main.py", line 61, in main
result=response
UnboundLocalError: local variable 'response' referenced before assignment
Error: Process completed with exit code 1.
来吧人多力量大。
刚刚搞出来的,调试的时候没问题,但不排除有其他bug,欢迎大家尝试。
项目地址:https://github.com/Revincx/HAUT_autoCheck_SCF
https://reportedh5.17wanxiao.com/api/clock/school/getUserInfo
接口数据
{
"result":true,
"msg":"成功",
"userInfo":{
"classDescription":"xxx学院-xxx专业-xxx班",
"classId":218269,
"collegeId":218267,
"customerId":5920,
"feature":1,
"majorId":218268,
"stuNo":"学号",
"userId":5830823,
"username":"姓名"
},
"code":0
}
这里面包含有用户的学院信息,班级号等等,这样就不再需要text.json文件了
您好,在设置完成后在运行-时钟里面有一个任务就代表了三个时间打卡吗?我这弄完之后有两个readme和一个main,最新设置的readme能用,其余两个不能用,这影响不影响,麻烦了
您好,我是 Server酱的作者 Easy 。注意到您的项目中对接或提及了 Server酱,非常感谢对我们的支持。
这里有一个小建议。Server酱最近推出了「推荐返现计划」,您可以在项目中Server酱的官网链接后边加上推荐参数,这样在用户从这里进入Server酱并订阅会员后,您的项目将获得2元/单的佣金。
只需要用微信登录fx.ftqq.com ,然后开通计划就可以获得您的推荐链接,佣金会实时地转入开通账号的微信零钱中。
希望这个计划能让您的开源项目更好。
Hello, I am Easy, the author of ServerChan. I noticed that your project has integrated or mentioned ServerChan, and I am very grateful for that.
I have a small suggestion. ServerChan has recently launched a "Referral Cashback Program". You can add a referral parameter to the link to ServerChan's official website in your project. This way, when users enter ServerChan through your link and subscribe to a membership, your project will earn a commission of 2 RMB per subscription.
You just need to log in to fx.ftqq.com with WeChat, activate the program, and you will get your referral link. The commission will be instantly transferred to the WeChat Wallet of the account that activated the program.
Even though the earnings might not be substantial, I hope this program can provide some additional support for your open-source project.
我设置的11点10分打卡,每次都是11点30多,现在越来越靠后,都11点40了才打卡,怎么回事呢?延迟好大啊,谢谢!
好的同学
开始尝试为用户8759打卡
<class 'binascii.Error'>
8759打卡出错,开始第1次重试...
<class 'binascii.Error'>
8759打卡出错,开始第2次重试...
<class 'binascii.Error'>
8759打卡出错,开始第3次重试...
<class 'binascii.Error'>
11:00:56 8759出现错误
如题
好像又不行了
希望学长改一下
请教 @Revincx,获取上一次的打卡数据遍历的时候出现Class keyerror ,我看了一下我打卡,每次进去有两个属性值是空的,就要你自己填,这种情况怎么解决?
没有碰到过这种情况,哪两项是空的?
实在不行可以改一下代码,不读取这两项,在提交函数里手动填上数据。
可以了,我用userComeApp这个方法获取数据。
如题~
Github Actions运行安装python3时出错,可能GitHub有所调整,目前已经更新clock.yml
文件解决。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.