weijiuguo / wanmei_autocheck Goto Github PK
View Code? Open in Web Editor NEWwanmeixiaoyuan check-in(完美校园打卡)
License: MIT License
wanmeixiaoyuan check-in(完美校园打卡)
License: MIT License
我设置的11点10分打卡,每次都是11点30多,现在越来越靠后,都11点40了才打卡,怎么回事呢?延迟好大啊,谢谢!
好像又不行了
如题~
campus\campus.py中的user_info是怎么得到呐,谢谢大佬
好的同学
{
"msg":"业务异常",
"code":"10007",
"data":"请在正确的打卡时间打卡"
}
看了一下,打卡时都用的同一个人的deviceId,只有第一个人能打卡成功
开始尝试为用户xxxx打卡
{
"msg":"成功",
"code":"10000",
"data":1
}
10:25:22 xxxx打卡成功
-----------------------
开始尝试为用户xxxx打卡
getUserInfo ERR,Retry......
getUserInfo ERR,Retry......
getUserInfo ERR,Retry......
Github Actions运行安装python3时出错,可能GitHub有所调整,目前已经更新clock.yml
文件解决。
<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.
如题
完美校园返回的所有班级depid信息还有吗
来吧人多力量大。
您好,在设置完成后在运行-时钟里面有一个任务就代表了三个时间打卡吗?我这弄完之后有两个readme和一个main,最新设置的readme能用,其余两个不能用,这影响不影响,麻烦了
是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
在本地成功打卡一次后,再次打卡时又出现上述问题。
希望学长改一下
你好,请问我把时间改到了十一点,到现在run还显示打卡时间未到,设置的时间是0 3,然后我从新fork文件也更新不了,该如何解决,麻烦请告知,江湖救急
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.
请教 @Revincx,获取上一次的打卡数据遍历的时候出现Class keyerror ,我看了一下我打卡,每次进去有两个属性值是空的,就要你自己填,这种情况怎么解决?
没有碰到过这种情况,哪两项是空的?
实在不行可以改一下代码,不读取这两项,在提交函数里手动填上数据。
可以了,我用userComeApp这个方法获取数据。
没有deviceld 可以完成部署吗
开始尝试为用户打卡
<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.
原作者的时间不能更改,更改后会导致10007错误,“不在打卡时间段内”,请大家用的时候注意
开始尝试为用户8759打卡
<class 'binascii.Error'>
8759打卡出错,开始第1次重试...
<class 'binascii.Error'>
8759打卡出错,开始第2次重试...
<class 'binascii.Error'>
8759打卡出错,开始第3次重试...
<class 'binascii.Error'>
11:00:56 8759出现错误
刚刚搞出来的,调试的时候没问题,但不排除有其他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文件了
校外打卡需要抓包嘛?
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.