Git Product home page Git Product logo

wanmei_autocheck's People

Contributors

chillsoul avatar yooking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wanmei_autocheck's Issues

检查run结果出现问题

打开run检查结果时,出现获取depeid失败和服务器错误,麻烦请指教该如何解决,谢谢

8)$P$)KPJ~Z5Y6ZD7_1SJ H

定时打卡失败

image

我的workflows里定时是这样的

schedule:
    - cron: 30,0 4,13,22 * * * 

打卡的时间对上了6点和6点半,但是没有打卡成功

补充:中午打卡成功了

user_info

campus\campus.py中的user_info是怎么得到呐,谢谢大佬

多人打卡代码有问题

看了一下,打卡时都用的同一个人的deviceId,只有第一个人能打卡成功

开始尝试为用户xxxx打卡
{
	"msg":"成功",
	"code":"10000",
	"data":1
}
10:25:22 xxxx打卡成功
-----------------------
开始尝试为用户xxxx打卡
getUserInfo ERR,Retry......
getUserInfo ERR,Retry......
getUserInfo ERR,Retry......

class 'requests.exceptions.ConnectionError'

<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信息还有吗

123

您好,在设置完成后在运行-时钟里面有一个任务就代表了三个时间打卡吗?我这弄完之后有两个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文件也更新不了,该如何解决,麻烦请告知,江湖救急

对于Action运行失败后续解决方案的探讨🧠

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 ,我看了一下我打卡,每次进去有两个属性值是空的,就要你自己填,这种情况怎么解决?

请教 @Revincx,获取上一次的打卡数据遍历的时候出现Class keyerror ,我看了一下我打卡,每次进去有两个属性值是空的,就要你自己填,这种情况怎么解决?

没有碰到过这种情况,哪两项是空的?
实在不行可以改一下代码,不读取这两项,在提交函数里手动填上数据。

可以了,我用userComeApp这个方法获取数据。

Action后run失败 报错

开始尝试为用户打卡
<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.

报binascii错误,请问这个应该怎么解决呀?

开始尝试为用户8759打卡
<class 'binascii.Error'>
8759打卡出错,开始第1次重试...
<class 'binascii.Error'>
8759打卡出错,开始第2次重试...
<class 'binascii.Error'>
8759打卡出错,开始第3次重试...
<class 'binascii.Error'>
11:00:56 8759出现错误

用户信息可从这个接口获取

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文件了

问题

校外打卡需要抓包嘛?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.