tiyaanlite / xybautosign Goto Github PK
View Code? Open in Web Editor NEW校友邦自动签到,支持批量签到签出与云函数部署
License: GNU General Public License v3.0
校友邦自动签到,支持批量签到签出与云函数部署
License: GNU General Public License v3.0
可以延迟程序签到时间,在一个时间段内随机延迟一段时间进行签到,避免过于准时吗
START RequestId: 3d99e087-f11e-4333-acd3-65dc3665579c2022-07-05 14:56:00,316 - XybAccount - INFO: 正在使用账号密码登录
Starting new HTTPS connection (1): xcx.xybsyw.com:443
2022-07-05 14:56:00,383 - XybSign - ERROR: 载入账户时出现异常
2022-07-05 14:56:00,383 - XybSign - ERROR: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
Traceback (most recent call last):
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 839, in validate_conn
conn.connect()
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/connection.py", line 344, in connect
ssl_context=context)
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/util/ssl.py", line 347, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/var/lang/python3/lib/python3.6/ssl.py", line 401, in wrap_socket
_context=self, _session=session)
File "/var/lang/python3/lib/python3.6/ssl.py", line 808, in init
self.do_handshake()
File "/var/lang/python3/lib/python3.6/ssl.py", line 1061, in do_handshake
self._sslobj.do_handshake()
File "/var/lang/python3/lib/python3.6/ssl.py", line 683, 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 "/var/lang/python3/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/util/retry.py", line 368, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/connectionpool.py", line 839, in validate_conn
conn.connect()
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/connection.py", line 344, in connect
ssl_context=context)
File "/var/lang/python3/lib/python3.6/site-packages/urllib3/util/ssl.py", line 347, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/var/lang/python3/lib/python3.6/ssl.py", line 401, in wrap_socket
_context=self, _session=session)
File "/var/lang/python3/lib/python3.6/ssl.py", line 808, in init
self.do_handshake()
File "/var/lang/python3/lib/python3.6/ssl.py", line 1061, in do_handshake
self._sslobj.do_handshake()
File "/var/lang/python3/lib/python3.6/ssl.py", line 683, 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 "/var/user/xyb.py", line 402, in init
self._accounts.append(XybAccount(**acc))
File "/var/user/xyb.py", line 47, in init
self.login()
File "/var/user/xyb.py", line 62, in login
self.login_phone()
File "/var/user/xyb.py", line 95, in login_phone
resp = self.session.post(url=XybSign.URL_LOGIN_PHONE, data=data).json()
File "/var/lang/python3/lib/python3.6/site-packages/requests/sessions.py", line 581, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/var/lang/python3/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/var/lang/python3/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/var/lang/python3/lib/python3.6/site-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
2022-07-05 14:56:00,384 - XybSign - INFO: 已载入 0 个账号
2022-07-05 14:56:00,384 - XybSign - INFO: 开始批量签退 0 个账户
2022-07-05 14:56:00,384 - XybSign - INFO: 任务结束,0(成功) / 0(失败)
2022-07-05 14:56:00,384 - XybSign - INFO: Webhooks: 0 || 0(完成) / 0(失败)
Response RequestId: 3d99e087-f11e-4333-acd3-65dc3665579c RetMsg: nullEND RequestId: 3d99e087-f11e-4333-acd3-65dc3665579cReport RequestId: 3d99e087-f11e-4333-acd3-65dc3665579c Duration: 71ms Memory: 128MB MemUsage: 18.47MB
如题,大佬脚本还是可以正常签到的,不过因为没有推送提醒咱害怕哪天突然抽风失效导致错过签到,>﹏<
def init_logger(logger: logging.Logger, fmt="%(asctime)s - %(name)s - %(levelname)s: %(message)s", encoding='utf-8'):
# logger.setLevel(logging.INFO)
formatter = logging.Formatter(fmt)
sh = logging.StreamHandler() ## 定义一个控制台,在控制台上将对应的信息来进行输出
sh.setFormatter(formatter) ## 来设置出相应的过滤输出的格式的
handler = logging.FileHandler("log.txt") ## 这里是来定义的一个日志文件
handler.setFormatter(formatter) ## 然后是日志文件里面对应的所输出的格式
logger.addHandler(sh)
logger.addHandler(handler)
这里我这么写倒是实现了输出log到txt,但百度logger的smtp推送无果。。。
想咨询下大佬怎么写才能实现smtp或者plush或者方糖,企业微信之类的推送
https://github.com/PilyziFox/XYB_Auto_Sign_Pandemic
我看到这个可以签到的,但是不可以手机号登录,与批量操作@.@
范围外签到或签退后如何进行覆盖签到。
还有一个问题 签到时间间隔时间长一点在哪里设置呢 每天签到时间都紧紧挨着 老师问起来很难受
但是有一个问题 使用需要抓包 希望大佬可以改进一下使用账号密码登陆
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.