Git Product home page Git Product logo

bili2.0's Introduction

bili2.0

  1. 由于哔哩哔哩目前对白嫖行为进行了很大的打击,且本人已经考取了研究生并已经开始了繁忙地学习,基本无暇顾及此项目,未来还会更新,但不会像以前一样及时更新与回复 issue 了,感谢各位一直以来的支持,也非常感谢群友对我的鼓励与帮助。
  2. 本项目已经取代 https://github.com/yjqiang/bilibili-live-tools,旧项目已经完全废除,不再提供更新和 bug 修复
  3. 项目初期只是想作为多用户分支,结果做完后发现,比原来项目做了很多。比如结构优化、很多函数调整、web_session 独立以及一些新的功能等,而且对单用户也很友好
  4. WIKI 里面有一些功能说明,以及代码一些设计细节

特别感谢

  1. https://github.com/lzghzr/bilive_client 该项目作者的大力支持
  2. Coderx for GitHub 的作者 https://github.com/CoderxforGitHub 对用户任务设计等的帮助以及其开发的 Github 软件的便利

支持与打赏

使用方法

  1. 先下载项目到电脑 https://github.com/yjqiang/bili2.0/archive/master.zip
  2. 安装 python3.6+,安装方法请自行谷歌/百度
  3. requirements.txt 是所需第三方模块,执行 pip install -r requirements.txt 安装模块
  4. /conf/user.sample.toml 是用户目录示例,在里面添加自己的账号;/conf/ctrl.sample.toml 是用户配置示例,里面有说明按需要开启功能; /conf/task.sample.toml 是任务(小电视、勋章投喂等)控制。需要自己定制这几个文件(不是在原来 sample 文件上改,而是自己在 conf 文件夹内新建 user.toml、ctrl.toml 和 task.toml 文件,在新文件上面改(注意全部复制过去后再改,sample 文件只作为用户使用参考,程序运行不会读取此文件,只会读取用户的新建 toml 文件))
  5. Python 和需要模块都装好了直接 cmd 运行 python run.py
  6. 节奏风暴默认关闭,开启需要把 /conf/task.sample.tomljoin_storm_raffle 修改,抢风暴的逻辑可以自由定制 /tasks/storm_raffle_handler.py
  7. 动态和实物抽奖总开关(这里的开关是程序暴力轮询总开关,与 /conf/task.sample.toml 中的不一样,task控制的是单个用户是否参与)在 ctrl.sample.toml ,开启后需要在 /conf/task.sample.toml 更新 dyn_lottery_friends(这是转发动态艾特的人选),参与的抽奖会在 dyn 里面产生一个 database 数据库(sqlite3)。

使用 Docker 快速使用方法 (每次启动的时候都会通过 git pull 同步主项目代码)

  1. 安装好 Docker
  2. 如果你需要对应的功能,就下载对应的功能文件。参照看上面的使用方法
  3. 在本地修改好文件。
  4. Docker 镜像启动时,把文件挂载到容器即可。
Docker in Linux
docker run --rm -it \
  -v $(pwd)/user.sample.toml:/app/conf/user.toml \
  -v $(pwd)/ctrl.sample.toml:/app/conf/ctrl.toml \
  -v $(pwd)/task.sample.toml:/app/conf/task.toml \
  zsnmwy/bili2.0

bili2.0's People

Contributors

acgnhiki avatar asd976385560 avatar dependabot-preview[bot] avatar hmbsbige avatar lc4t avatar mengshouer avatar nekoprpr avatar pjy612 avatar skimige avatar yjqiang avatar yunowo avatar zsnmwy 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  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

bili2.0's Issues

ssl error

<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)]

关于控制台查询的建议

能否增加单独账户查询?(可根据UID或者其他识别账户的凭证指定查询)。
1.查询参与抽奖结果时,没有识别名,不清楚那个是哪个账户的结果,自己一一对应麻烦。
2.查询黑屋状态时,同上,只有id查看,自己查id要慢慢数第几个个账户进了黑屋。
3.今日任务完成情况上一个结果和下一个结果头尾连在一起,界限分不清楚。(同样没有识别名)
4.最后有个错误,不知道是什么情况,
qq 20180816072047
感谢作者。

关于一次性监控到多个高能的参与

上周日,一晚上的高能都是按百算的,出现过403频繁,还有过后连接服务器卡顿,且出现切换API错误的反馈。
怀疑是一次性参与太多,导致的问题,可否设置成,检测到超过50\100以上的高能,分批次参与,4-5秒参与10个这样子,120秒的高能时间应该足够抽200-300个,不会导致后面一个都参与不了的尴尬。

。。

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)

效率相关

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

新报错

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
开始赠送硬币

关于辣条绕黑屋功能

我在别的绕黑屋软件抓了数据包,看到了POST的频率和目标URL,这个方法应该可行,看能否增加进助手里面,检测到小黑屋的时候开启这个功能。
qq 20180902111655

无法参与大航海

检测到航海,却无法参与领取,原因未知,猜测是api的更改
(暂没空检查)

三号直播间

里面好像有一个robot
再发各种上船信息
还可以回答各种指令
default

发现一些问题

运行一定时间以后

[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

ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

可用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进制的初衷是为了什么,觉得有点不太必要,怕被别人盗用?

运行报错

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

建议不要引入Matplotlib

粗略看了一下,Matplotlib在本项目中仅用作颜色相关操作,有点大材小用。并且该库过于庞大,与GUI相关程序包依赖过多,极容易出现问题。个人觉得还不如回退至之前的Webcolors= =

SyntaxError: invalid character in identifier

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
似乎那个逗号打成全角符了

\ufeff windows记事本

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)

不能自动解除小黑屋状态

如果在脚本运行过程中某一用户小黑屋状态解除,不能自动更新小黑屋状态,也不会抽奖,必须重开脚本
但其实在心跳过程中,已经不会有检测为小黑屋提示
怀疑是忘写了(逃

求一份脚本参数教程

大佬,你好
我的脚本两天没有工作了(删除重新下载也一样),有没有脚本设置参数对照教程。

WinError 10054

<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] 远程主机强迫关闭了一个现有的连接。

timeout问题

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] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。',))

小电视辣条瓜子概率

最近都抽不到瓜子了,只能抽到辣条,不知道是不是新型小黑屋,还是非酋了,话说大佬那天50个号测试有号抽到瓜子吗

由于系统缓冲区空间不足或队列已满,不能执行套接字上的操作。

<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

貌似有卡住的问题

卡住的问题貌似还有,会解决么还是说就光标保持最下就完事了?

[2019-01-31 13:49:12] 0号弹幕监控已连接b站服务器

主站每日登录任务已完成

主站每日观看视频任务已完成

主站每日投币 20 (这里乘了10,实际硬币个数为显示数目除以10)

主站每日分享视频任务已完成

[2019-01-31 13:49:13] 0号弹幕监控进入房间(1823260)
[2019-01-31 13:49:28] 0号弹幕监控检测到 7471685 的大航海(id: 779181)

由于心跳包30s一次,但是发现35内没有收到任何包,说明已经悄悄失联了,主动断开

由于心跳包30s一次,但是发现35内没有收到任何包,说明已经悄悄失联了,主动断开

[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号弹幕姬退出,剩余任务处理完毕

8月23日新增的修改导致403

使用8月23日修改过的版本,会出现403频繁,关闭之后同一时间用回上一个8月20日修改的版本,403频繁没有出现。没截图

提议

最近一大批小号出现在storm的弹幕中,我建议,把2.0的关于storm的源码delete,注释的话还是看的到的。公开这个貌似引起了很多人的不满。。。当然,只是建议而已。另,如果用的是源码列表的proxies,也会封死你收集来的。(可能不是用你提供的)(不过我挺希望能delete)

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.