albresky / hdu-library-master Goto Github PK
View Code? Open in Web Editor NEW[HLM is All You Need] 杭电图书馆🏨 | 自动化预约🛠️ | 定时抢座🕗 | 一分钟部署🚀
License: Apache License 2.0
[HLM is All You Need] 杭电图书馆🏨 | 自动化预约🛠️ | 定时抢座🕗 | 一分钟部署🚀
License: Apache License 2.0
Run python main.py
未检测到配置文件,将在config目录下创建配置文件: ./config/config.yaml
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1042, in validate_conn
conn.connect()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/ssl.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/ssl.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1073, in _create
self.do_handshake()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1042, in validate_conn
conn.connect()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/ssl.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/urllib3/util/ssl.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1073, in _create
self.do_handshake()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 117, in
run()
File "main.py", line 18, in run
if api.run():
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/UserInterface.py", line 62, in run
state = self.login()
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/UserInterface.py", line 35, in login
if self.master.login():
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/utils/master.py", line 118, in login
loginRes = self.session.post(url=url, data=self.userInfo)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 635, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/adapters.py", line 547, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Error: Process completed with exit code 1.
就运行了五分钟 但没有占座
Traceback (most recent call last):
File "main.py", line 108, in
run()
File "main.py", line 33, in run
preExeTime_details = getNowTime().strptime(
TypeError: strptime() argument 1 must be str, not None
Error: Process completed with exit code 1
Could you tell me how to fix it. Looking forward to your reply!
[2023-***-06 9:29:02+08:00][checkpoint B]未到任务执行时间,还差[858]s,等待中...
18
[2023--06 20:00:00+08:00][plan[0]=] 开始预约...
19
请求失败,状态码错误,status_code=502
20
Traceback (most recent call last):
21
File "main.py", line ***7, in
22
run()
23
File "main.py", line 87, in run
24
getInfo(tryTimes + ***, plan, res)
25
File "main.py", line ***, in getInfo
26
print(f"[{getNowTime()}][try={trial}] MSG={resp['MESSAGE']} | {info['roomName']},{info['floorName']},{info['seatNum']}座,{plan['beginTime'].strftime('%Y-%m-%d %H:%M')},{plan['duration']}小时"
27
TypeError: 'NoneType' object is not subscriptable
28
Error: Process completed with exit code ***.
Run python main.py
配置文件解析成功。
登录成功
[0-10-16 19:6:8+08:00][checkpoint B]未到任务执行时间,还差[00]s,等待中...
[0-10-16 0:00:00+08:00][plan[0]=] 开始预约...
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/.8.18/x64/lib/python*.8/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, kwargs)
File "/opt/hostedtoolcache/Python/.8.18/x64/lib/python**.8/json/init.py", line 57, in loads
return _default_decoder.decode(s)
File "/opt/hostedtoolcache/Python/.8.18/x64/lib/python***.8/json/decoder.py", line 7, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/hostedtoolcache/Python/.8.18/x64/lib/python***.8/json/decoder.py", line ***55, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 117, in
run()
File "main.py", line 85, in run
res = master.run(plan)
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/utils/master.py", line 4, in run
res = res.json()
File "/opt/hostedtoolcache/Python/.8.18/x64/lib/python.8/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Error: Process completed with exit code 1.
Run python main.py
配置文件解析成功。
登录成功
[2023-09-20 19:08:22+08:00][checkpoint B]未到任务执行时间,还差[3098]s,等待中...
[2023-09-20 20:00:00+08:00][plan[0]=****] 开始预约...
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 108, in
run()
File "main.py", line 81, in run
res = master.run(plan)
File "/home/runner/work/HDU-Library-Master/HDU-Library-Master/utils/master.py", line 222, in run
res = self.session.post(url=url, data=data).json()
File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Error: Process completed with exit code 1.
Run python main.py
配置文件解析成功。
登录成功
[2023-10-21 19:30:05+08:00][checkpoint B]未到任务执行时间,还差[1795]s,等待中...
[2023-10-21 20:00:00+08:00][plan[0]=] 开始预约...
[2023-10-21 20:00:36+08:00]plan[0]=] 预约失败
Issues
)。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.