Giter Club home page Giter Club logo

xybautosign's People

Contributors

tiyaanlite avatar

Stargazers

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

Watchers

 avatar

xybautosign's Issues

请问签退时出现 载入账户时出现异常 是因为接口更新了吗,是否有解决办法

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

关于logger的smtp推送

如题,大佬脚本还是可以正常签到的,不过因为没有推送提醒咱害怕哪天突然抽风失效导致错过签到,>﹏<

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或者方糖,企业微信之类的推送

有人更新了新代码

但是有一个问题 使用需要抓包 希望大佬可以改进一下使用账号密码登陆

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.