yjqiang / bili2.0 Goto Github PK
View Code? Open in Web Editor NEWPython3 实现的 bilibili 直播助手(多用户)
License: MIT License
Python3 实现的 bilibili 直播助手(多用户)
License: MIT License
Traceback (most recent call last):
File "0.py", line 3, in
from webhub.web_hub import WebHub, HostWebHub
File "/home/reloader/bili2.0/webhub/web_hub.py", line 2, in
from webhub.bili_web_hub import BiliWebHub, HostBiliWebHub
File "/home/reloader/bili2.0/webhub/bili_web_hub.py", line 147
'csrf_token': self.dict_bili['csrf'],
^
SyntaxError: invalid character in identifier
似乎那个逗号打成全角符了
PS E:\N\VPS1> python .\0.py
Traceback (most recent call last):
File ".\0.py", line 28, in
dict_user = cfg.read_user()
File "E:\N\VPS1\config_loader.py", line 71, in read_user
dict_user = toml.load(f)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python37\lib\site-packages\toml\decoder.py", line 134, in load
return loads(f.read(), _dict, decoder)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python37\lib\site-packages\toml\decoder.py", line 227, in loads
original, i)
toml.decoder.TomlDecodeError: Found invalid character in key name: '['. Try quoting the key name. (line 1 column 2 char 1)
运行一定时间以后
[2018-07-12 16:42:46] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:46] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:46] 风纪委员会共获取0件案例,其中有效投票0件
ffffdjjjdcgcdhtdtdchtrhtcrcrthctrhhctrctrhctrhcrhtctrhcrthchtrhct
智能睡眠 0
hhhhhhhhhhhhhhhh 0 judge
hhhhhhhhhhhhhhhh 1 judge
hhhhhhhhhhhhhhhh 2 judge
本次未获取到案件
[2018-07-12 16:42:46] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:46] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:46] 风纪委员会共获取0件案例,其中有效投票0件
ffffdjjjdcgcdhtdtdchtrhtcrcrthctrhhctrctrhctrhcrhtctrhcrthchtrhct
智能睡眠 0
hhhhhhhhhhhhhhhh 0 judge
hhhhhhhhhhhhhhhh 1 judge
hhhhhhhhhhhhhhhh 2 judge
本次未获取到案件
[2018-07-12 16:42:46] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:46] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:46] 风纪委员会共获取0件案例,其中有效投票0件
ffffdjjjdcgcdhtdtdchtrhtcrcrthctrhhctrctrhctrhcrhtctrhcrthchtrhct
智能睡眠 0
hhhhhhhhhhhhhhhh 0 judge
hhhhhhhhhhhhhhhh 1 judge
hhhhhhhhhhhhhhhh 2 judge
本次未获取到案件
[2018-07-12 16:42:47] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:47] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:47] 风纪委员会共获取0件案例,其中有效投票0件
ffffdjjjdcgcdhtdtdchtrhtcrcrthctrhhctrctrhctrhcrhtctrhcrthchtrhct
智能睡眠 0
hhhhhhhhhhhhhhhh 0 judge
hhhhhhhhhhhhhhhh 1 judge
hhhhhhhhhhhhhhhh 2 judge
本次未获取到案件
[2018-07-12 16:42:47] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:47] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:47] 风纪委员会共获取0件案例,其中有效投票0件
ffffdjjjdcgcdhtdtdchtrhtcrcrthctrhhctrctrhctrhcrhtctrhcrthchtrhct
智能睡眠 0
hhhhhhhhhhhhhhhh 0 judge
hhhhhhhhhhhhhhhh 1 judge
hhhhhhhhhhhhhhhh 2 judge
本次未获取到案件
[2018-07-12 16:42:48] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:48] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:48] 风纪委员会共获取0件案例,其中有效投票0件
ffffdjjjdcgcdhtdtdchtrhtcrcrthctrhhctrctrhctrhcrhtctrhcrthchtrhct
智能睡眠 0
hhhhhhhhhhhhhhhh 0 judge
hhhhhhhhhhhhhhhh 1 judge
hhhhhhhhhhhhhhhh 2 judge
本次未获取到案件
[2018-07-12 16:42:48] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:48] 风纪委员会共获取0件案例,其中有效投票0件
本次未获取到案件
[2018-07-12 16:42:48] 风纪委员会共获取0件案例,其中有效投票0件
ffffdjjjdcgcdhtdtdchtrhtcrcrthctrhhctrctrhctrhcrhtctrhcrthchtrhct
智能睡眠 0
上周日,一晚上的高能都是按百算的,出现过403频繁,还有过后连接服务器卡顿,且出现切换API错误的反馈。
怀疑是一次性参与太多,导致的问题,可否设置成,检测到超过50\100以上的高能,分批次参与,4-5秒参与10个这样子,120秒的高能时间应该足够抽200-300个,不会导致后面一个都参与不了的尴尬。
直播区新增抽奖礼物,“小金人”,触发分区广播+抽奖,望更新!
没有识别任意门并参与抽奖
如果在脚本运行过程中某一用户小黑屋状态解除,不能自动更新小黑屋状态,也不会抽奖,必须重开脚本
但其实在心跳过程中,已经不会有检测为小黑屋提示
怀疑是忘写了(逃
最近一大批小号出现在storm的弹幕中,我建议,把2.0的关于storm的源码delete,注释的话还是看的到的。公开这个貌似引起了很多人的不满。。。当然,只是建议而已。另,如果用的是源码列表的proxies,也会封死你收集来的。(可能不是用你提供的)(不过我挺希望能delete)
Task exception was never retrieved
future: <Task finished coro=<Notifier.__exec_one_step() done, defined at E:\bilibili help\bili2.0-master\notifier.py:42> exception=RuntimeError('Task <Task pending coro=<Notifier.__exec_one_step() running at E:\bilibili help\bili2.0-master\notifier.py:46>> got Future attached to a different loop',)>
Traceback (most recent call last):
File "E:\bilibili help\bili2.0-master\notifier.py", line 46, in __exec_one_step
results = await self.notify(id, func, *args)
File "E:\bilibili help\bili2.0-master\notifier.py", line 20, in notify
result = await self.users[id].accept(func, *args)
File "E:\bilibili help\bili2.0-master\user.py", line 113, in accept
return await func(self, *args)
File "E:\bilibili help\bili2.0-master\tasks\live_daily_job.py", line 276, in send_gift
await SendGiftTask.send_medal_gift(user)
File "E:\bilibili help\bili2.0-master\tasks\live_daily_job.py", line 231, in send_medal_gift
medals = await SendGiftTask.fetch_wearing_medal(user)
File "E:\bilibili help\bili2.0-master\tasks\live_daily_job.py", line 189, in fetch_wearing_medal
json_rsp = await user.req_s(SendGiftReq.fetch_wearing_medal, user)
File "E:\bilibili help\bili2.0-master\user.py", line 82, in req_s
rsp = await func(*args)
File "E:\bilibili help\bili2.0-master\reqs\live_daily_job.py", line 103, in fetch_wearing_medal
json_rsp = await user.bililive_session.request_json('POST', url, data=data, headers=user.dict_bili['pcheaders'])
File "E:\bilibili help\bili2.0-master\web_session.py", line 57, in request_json
async with sem:
File "E:\Program Files\Python36\lib\asyncio\locks.py", line 79, in aenter
yield from self.acquire()
File "E:\Program Files\Python36\lib\asyncio\locks.py", line 468, in acquire
yield from fut
RuntimeError: Task <Task pending coro=<Notifier.__exec_one_step() running at E:\bilibili help\bili2.0-master\notifier.py:46>> got Future attached to a different loop
Task exception was never retrieved
future: <Task finished coro=<Notifier.__exec_one_step() done, defined at E:\bilibili help\bili2.0-master\notifier.py:42> exception=RuntimeError('Task <Task pending coro=<Notifier.__exec_one_step() running at E:\bilibili help\bili2.0-master\notifier.py:46>> got Future attached to a different loop',)>
Traceback (most recent call last):
File "E:\bilibili help\bili2.0-master\notifier.py", line 46, in __exec_one_step
results = await self.notify(id, func, *args)
File "E:\bilibili help\bili2.0-master\notifier.py", line 20, in notify
result = await self.users[id].accept(func, *args)
File "E:\bilibili help\bili2.0-master\user.py", line 113, in accept
return await func(self, *args)
File "E:\bilibili help\bili2.0-master\tasks\live_daily_job.py", line 276, in send_gift
await SendGiftTask.send_medal_gift(user)
File "E:\bilibili help\bili2.0-master\tasks\live_daily_job.py", line 231, in send_medal_gift
medals = await SendGiftTask.fetch_wearing_medal(user)
File "E:\bilibili help\bili2.0-master\tasks\live_daily_job.py", line 189, in fetch_wearing_medal
json_rsp = await user.req_s(SendGiftReq.fetch_wearing_medal, user)
File "E:\bilibili help\bili2.0-master\user.py", line 82, in req_s
rsp = await func(*args)
File "E:\bilibili help\bili2.0-master\reqs\live_daily_job.py", line 103, in fetch_wearing_medal
json_rsp = await user.bililive_session.request_json('POST', url, data=data, headers=user.dict_bili['pcheaders'])
File "E:\bilibili help\bili2.0-master\web_session.py", line 57, in request_json
async with sem:
File "E:\Program Files\Python36\lib\asyncio\locks.py", line 79, in aenter
yield from self.acquire()
File "E:\Program Files\Python36\lib\asyncio\locks.py", line 468, in acquire
yield from fut
RuntimeError: Task <Task pending coro=<Notifier.__exec_one_step() running at E:\bilibili help\bili2.0-master\notifier.py:46>> got Future attached to a different loop
{'code': 25005, 'message': '请成为风纪委员后再试', 'ttl': 1}
本次未获取到案件
True True 50 True
Task exception was never retrieved
future: <Task finished coro=<Notifier.__exec_one_step() done, defined at E:\bilibili help\bili2.0-master\notifier.py:42> exception=RuntimeError('Task <Task pending coro=<Notifier.__exec_one_step() running at E:\bilibili help\bili2.0-master\notifier.py:46>> got Future attached to a different loop',)>
Traceback (most recent call last):
File "E:\bilibili help\bili2.0-master\notifier.py", line 46, in __exec_one_step
results = await self.notify(id, func, *args)
File "E:\bilibili help\bili2.0-master\notifier.py", line 20, in notify
result = await self.users[id].accept(func, *args)
File "E:\bilibili help\bili2.0-master\user.py", line 113, in accept
return await func(self, *args)
File "E:\bilibili help\bili2.0-master\tasks\main_daily_job.py", line 126, in judge
json_rsp = await user.req_s(JudgeCaseReq.fetch_case, user)
File "E:\bilibili help\bili2.0-master\user.py", line 82, in req_s
rsp = await func(*args)
File "E:\bilibili help\bili2.0-master\reqs\main_daily_job.py", line 28, in fetch_case
json_rsp = await user.other_session.request_json('POST', url, headers=user.dict_bili['pcheaders'], data=data)
File "E:\bilibili help\bili2.0-master\web_session.py", line 57, in request_json
async with sem:
File "E:\Program Files\Python36\lib\asyncio\locks.py", line 79, in aenter
yield from self.acquire()
File "E:\Program Files\Python36\lib\asyncio\locks.py", line 468, in acquire
yield from fut
RuntimeError: Task <Task pending coro=<Notifier.__exec_one_step() running at E:\bilibili help\bili2.0-master\notifier.py:46>> got Future attached to a different loop
开始赠送硬币
就是一个小号中了实物但是忘记领了,要是能判断没有填地址然后自动提醒就好了,或者输入哪个数字代码可以查看实物奖品的情况吗?
最近都抽不到瓜子了,只能抽到辣条,不知道是不是新型小黑屋,还是非酋了,话说大佬那天50个号测试有号抽到瓜子吗
大佬,你好
我的脚本两天没有工作了(删除重新下载也一样),有没有脚本设置参数对照教程。
gift confi这个api随缘 mdzz
检测到航海,却无法参与领取,原因未知,猜测是api的更改
(暂没空检查)
所以重构是重构到这里,原来那个还更新吗
在运行0的时候出现的
Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x116553cf8>
transport: <_SelectorSocketTransport fd=357 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/private/var/mobile/Containers/Shared/AppGroup/383B28C1-6DCF-40D8-AB53-B5F7548B7F79/Pythonista3/Documents/site-packages-3/aiohttp/client.py", line 391, in _request
await resp.start(conn)
File "/private/var/mobile/Containers/Shared/AppGroup/383B28C1-6DCF-40D8-AB53-B5F7548B7F79/Pythonista3/Documents/site-packages-3/aiohttp/client_reqrep.py", line 770, in start
self._continue = None
File "/private/var/mobile/Containers/Shared/AppGroup/383B28C1-6DCF-40D8-AB53-B5F7548B7F79/Pythonista3/Documents/site-packages-3/aiohttp/helpers.py", line 673, in exit
raise asyncio.TimeoutError from None
concurrent.futures._base.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/containers/Bundle/Application/84DF3BDF-B442-41B6-93B3-AB45EDA9E5FC/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/asyncio/sslproto.py", line 640, in _process_write_backlog
ssldata = self._sslpipe.shutdown(self._finalize)
File "/var/containers/Bundle/Application/84DF3BDF-B442-41B6-93B3-AB45EDA9E5FC/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/asyncio/sslproto.py", line 156, in shutdown
ssldata, appdata = self.feed_ssldata(b'')
File "/var/containers/Bundle/Application/84DF3BDF-B442-41B6-93B3-AB45EDA9E5FC/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/asyncio/sslproto.py", line 220, in feed_ssldata
self._sslobj.unwrap()
File "/var/containers/Bundle/Application/84DF3BDF-B442-41B6-93B3-AB45EDA9E5FC/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/ssl.py", line 692, in unwrap
return self._sslobj.shutdown()
ssl.SSLError: [SSL] called a function you should not call (_ssl.c:2299)
卡住的问题貌似还有,会解决么还是说就光标保持最下就完事了?
[2019-01-31 13:49:12] 0号弹幕监控已连接b站服务器
[2019-01-31 13:49:13] 0号弹幕监控进入房间(1823260)
[2019-01-31 13:49:28] 0号弹幕监控检测到 7471685 的大航海(id: 779181)
[2019-01-31 14:21:59] 4号弹幕姬异常或主动断开,正在处理剩余信息
[2019-01-31 14:21:59] 主弹幕姬异常或主动断开,正在处理剩余信息
[2019-01-31 14:21:59] 4号弹幕姬退出,剩余任务处理完毕
[2019-01-31 14:21:59] 5号弹幕姬异常或主动断开,正在处理剩余信息
[2019-01-31 14:21:59] 主弹幕姬退出,剩余任务处理完毕
[2019-01-31 14:21:59] 正在启动直播监控弹幕姬
[2019-01-31 14:21:59] Yj弹幕姬异常或主动断开,正在处理剩余信息
[2019-01-31 14:21:59] 1号弹幕姬异常或主动断开,正在处理剩余信息
[2019-01-31 14:21:59] 5号弹幕姬退出,剩余任务处理完毕
[2019-01-31 14:21:59] Yj弹幕姬退出,剩余任务处理完毕
[2019-01-31 14:21:59] 正在启动Yj监控弹幕姬
[2019-01-31 14:21:59] 1号弹幕姬退出,剩余任务处理完毕
[2019-01-31 14:21:59] 6号弹幕姬异常或主动断开,正在处理剩余信息
[2019-01-31 14:21:59] 6号弹幕姬退出,剩余任务处理完毕
[2019-01-31 14:21:59] 2号弹幕姬异常或主动断开,正在处理剩余信息
[2019-01-31 14:21:59] 2号弹幕姬退出,剩余任务处理完毕
[2019-01-31 14:21:59] 3号弹幕姬异常或主动断开,正在处理剩余信息
[2019-01-31 14:21:59] 3号弹幕姬退出,剩余任务处理完毕
如舰长、风暴等,python ios仅能425左右房间
使用8月23日修改过的版本,会出现403频繁,关闭之后同一时间用回上一个8月20日修改的版本,403频繁没有出现。没截图
<class 'aiohttp.client_exceptions.ClientConnectorError'> Cannot connect to host
120.221.74.132:80 ssl:None [由于系统缓冲区空间不足或队列已满,不能执行套接字上的
操作。] http://120.221.74.132/gift/v3/smalltv/join 14
<class 'concurrent.futures._base.TimeoutError'> https://account.bilibili.com/ho
me/reward
<class 'aiohttp.client_exceptions.ClientConnectorError'> Cannot connect to host
113.207.83.212:80 ssl:None [由于系统缓冲区空间不足或队列已满,不能执行套接字上的
操作。] http://113.207.83.212/gift/v3/smalltv/join 35
<class 'aiohttp.client_exceptions.ClientConnectorError'> Cannot connect to host
211.159.214.11:80 ssl:None [由于系统缓冲区空间不足或队列已满,不能执行套接字上的
操作。] http://211.159.214.11/gift/v3/smalltv/join 18
<class 'aiohttp.client_exceptions.ClientConnectorError'> Cannot connect to host
120.221.74.132:80 ssl:None [由于系统缓冲区空间不足或队列已满,不能执行套接字上的
操作。] http://120.221.74.132/room/v1/Room/room_entry_action 14
<class 'aiohttp.client_exceptions.ClientConnectorError'> Cannot connect to host
120.92.113.211:80 ssl:None [由于系统缓冲区空间不足或队列已满,不能执行套接字上的
操作。] http://120.92.113.211/gift/v3/smalltv/join 19
python版本3.6.5
Traceback (most recent call last):
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\connection.py", line 83, in create_connection
raise err
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen
chunked=chunked)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 357, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1026, in _send_output
self.send(msg)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 964, in send
self.connect()
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connection.py", line 166, in connect
conn = self._new_conn()
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connection.py", line 150, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x000002452B413BA8>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\adapters.py", line 445, in send
timeout=timeout
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='101.236.6.31', port=8080): Max retries exceeded with url: /code (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002452B413BA8>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ".\0.py", line 39, in
users = [User(i, user_info, dict_bili, task_control, True) for i, user_info in enumerate(dict_user['users'])]
File ".\0.py", line 39, in
users = [User(i, user_info, dict_bili, task_control, True) for i, user_info in enumerate(dict_user['users'])]
File "E:\1-50\user.py", line 31, in init
self.login(dict_user['username'], dict_user['password'])
File "E:\1-50\user.py", line 50, in login
response = self.webhub.captcha_login(url_username, url_password)
File "E:\1-50\web_hub.py", line 366, in captcha_login
captcha = cnn_captcha(tmp1)
File "E:\1-50\web_hub.py", line 27, in cnn_captcha
rsp = requests.post(url, data=data)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\api.py", line 112, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\adapters.py", line 513, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='101.236.6.31', port=8080): Max retries exceeded with url: /code (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000002452B413BA8>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。',))
如何多账号,而且不同账号的一些投喂之类的也不一样的
<class 'concurrent.futures._base.TimeoutError'> https://www.bilibili.com/rankin
g/all/0/0/1/
<class 'concurrent.futures._base.TimeoutError'> https://api.vc.bilibili.com/lin
k_group/v1/member/my_groups
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36-32\lib\asyncio\ev
ents.py", line 145, in _run
self._callback(*self._args)
File "C:\Users\Haruna\AppData\Local\Programs\Python\Python36-32\lib\asyncio\pr
oactor_events.py", line 136, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
请反馈给作者
timeit.timeit("x = 2; 'X is {}'.format(x)")
0.32464265200542286
timeit.timeit("x = 2; 'X is %s' % x")
0.2260766440012958
timeit.timeit("x = 2; f'X is {x}'")
0.14437875000294298
粗略看了一下,Matplotlib在本项目中仅用作颜色相关操作,有点大材小用。并且该库过于庞大,与GUI相关程序包依赖过多,极容易出现问题。个人觉得还不如回退至之前的Webcolors= =
可用ip为 85 个
token有效期检查: 仍有效
Traceback (most recent call last):
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connection.py", line 171, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\connection.py", line 79, in create_connection
raise err
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\connection.py", line 69, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 600, in urlopen
chunked=chunked)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 354, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 1026, in _send_output
self.send(msg)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\http\client.py", line 964, in send
self.connect()
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connection.py", line 196, in connect
conn = self._new_conn()
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connection.py", line 180, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x0000027534EC3EF0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\adapters.py", line 445, in send
timeout=timeout
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\util\retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='47.95.255.188', port=5000): Max retries exceeded with url: /code (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000027534EC3EF0>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ".\0.py", line 39, in
users = [User(i, user_info, dict_bili, task_control, True) for i, user_info in enumerate(dict_user['users'])]
File ".\0.py", line 39, in
users = [User(i, user_info, dict_bili, task_control, True) for i, user_info in enumerate(dict_user['users'])]
File "C:\Users\K1\Desktop\K1\user.py", line 35, in init
self.login()
File "C:\Users\K1\Desktop\K1\user.py", line 122, in login
response = self.webhub.captcha_login(url_username, url_password)
File "C:\Users\K1\Desktop\K1\web_hub.py", line 350, in captcha_login
captcha = cnn_captcha(tmp1)
File "C:\Users\K1\Desktop\K1\web_hub.py", line 26, in cnn_captcha
rsp = requests.post(url, data=data)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\api.py", line 112, in post
return request('post', url, data=data, json=json, **kwargs)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\sessions.py", line 622, in send
r = adapter.send(request, **kwargs)
File "C:\Users\K1\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\adapters.py", line 513, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='47.95.255.188', port=5000): Max retries exceeded with url: /code (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000027534EC3EF0>: Failed to establish a new connection: [WinError 10061] 由于目 标计算机积极拒绝,无法连接。',))
PS C:\Users\K1\Desktop\K1>
user.toml中有没写username和password等等的账号,则会出现API错误,信息如下(截图无法上传……)
hhhhhhjjjjdjdjddjdjdjjd.........dj 3
(另,催一催bili2.0的62进制跟进)
有点好奇用62进制的初衷是为了什么,觉得有点不太必要,怕被别人盗用?
当下环境可以通过网页打开bilibili
<class 'aiohttp.client_exceptions.ClientConnectorSSLError'> Cannot connect to host www.bilibili.com:443 ssl:None [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)]
File "0.py", line 26, in
dict_user = cfg.read_user()
File "/root/php/bili2.0/config_loader.py", line 74, in read_user
dict_user = toml.load(f)
File "/usr/local/lib/python3.6/dist-packages/toml.py", line 108, in load
return loads(f.read(), _dict)
File "/usr/local/lib/python3.6/dist-packages/toml.py", line 306, in loads
if line[1].strip() != "":
IndexError: list index out of range
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.