Coder Social home page Coder Social logo

bilibili's People

Contributors

chen310 avatar clover1420 avatar huajiqaq avatar ice99125 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

bilibili's Issues

功能建议

希望能够增加“银瓜子”兑换“硬币”的功能!

cookie有效期问题

请问下如何获取有效期长一点的cookie?
B站web端F12里复制过去的cookie老是不到1周就失效了,是B站新更新了cookie相关的啥吗,PC WEB端登录一直没掉,仔细看了下发现SESSDATA和bili_jct一直在变

pushplus整点推送失败

Starting new HTTP connection (1): www.pushplus.plus:80

推送时出现错误, 原因: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

Response RequestId:286c10da-a8e5-4dbe-9c72-cef50ef43872 RetMsg:null

END RequestId:286c10da-a8e5-4dbe-9c72-cef50ef43872

Report RequestId:286c10da-a8e5-4dbe-9c72-cef50ef43872 Duration:6294ms Memory:128MB MemUsage:17.051018MB

Screenshot_2022-03-04-00-27-31-53_fab32b241c9ab51b0e057c943b753947.jpg

功能建议

大会员有个新的大积分可以通过签到浏览它的界面获得,大佬能看下可以脚本实现吗
图片

本地跑

请问,本地跑怎样配置推送

账号无法登陆

照着几个issue的方法排错 换了好几次cookie仍然无法登陆(还从腾讯切去阿里试了几遍)
4E%49V$ZV2A}$HYX{E}11E](https://user-images.githubusercontent.com/93369744/187358753-3e33c0b8-4ce2-4dc8-9526-63db2babf7c0.png) ![C45( (VOC)WY7NKY( APEV

请问将分隔符改为特殊是什么意思

云函数测试失败,是因为","的原因吗

START RequestId: e7ea34e1-a8f9-47b5-9d5f-f2777c9092c1

Init Report RequestId: e7ea34e1-a8f9-47b5-9d5f-f2777c9092c1 Coldstart: 144ms (PullCode: 7ms InitRuntime: 5ms InitFunction: 132ms) Memory: 512MB MemUsage: 8.14MB

ERROR RequestId: e7ea34e1-a8f9-47b5-9d5f-f2777c9092c1 Result: {"errorCode": -1, "errorMessage": "Traceback (most recent call last): File "/var/runtime/python3/bootstrap.py", line 133, in init_handler func_handler = get_func_handler(file.rsplit(".", 1)[0], func) File "/var/runtime/python3/bootstrap.py", line 159, in get_func_handler mod = imp.load_module(mname, *imp.find_module(mname)) File "/var/lang/python3/lib/python3.6/imp.py", line 234, in load_module return load_source(name, filename, file) File "/var/lang/python3/lib/python3.6/imp.py", line 172, in load_source module = _load(spec) File "", line 675, in _load File "", line 655, in _load_unlocked File "", line 674, in exec_module File "", line 781, in get_code File "", line 741, in source_to_code File "", line 205, in _call_with_frames_removed File "/var/user/index.py", line 1 import requests ^ IndentationError: unexpected indent", "statusCode": 443}

END RequestId: e7ea34e1-a8f9-47b5-9d5f-f2777c9092c1

Report RequestId: e7ea34e1-a8f9-47b5-9d5f-f2777c9092c1 Duration: 0ms Memory: 512MB MemUsage: 8.14MB

START RequestId:e7ea34e1-a8f9-47b5-9d5f-f2777c9092c1

ERROR RequestId:e7ea34e1-a8f9-47b5-9d5f-f2777c9092c1 Result:{"errorCode":-1,"errorMessage":"Traceback (most recent call last):\n File "/var/runtime/python3/bootstrap.py", line 133, in init_handler\n func_handler = get_func_handler(file.rsplit(".", 1)[0], func)\n File "/var/runtime/python3/bootstrap.py", line 159, in get_func_handler\n mod = imp.load_module(mname, *imp.find_module(mname))\n File "/var/lang/python3/lib/python3.6/imp.py", line 234, in load_module\n return load_source(name, filename, file)\n File "/var/lang/python3/lib/python3.6/imp.py", line 172, in load_source\n module = _load(spec)\n File "\u003cfrozen importlib._bootstrap\u003e", line 675, in _load\n File "\u003cfrozen importlib._bootstrap\u003e", line 655, in _load_unlocked\n File "\u003cfrozen importlib._bootstrap_external\u003e", line 674, in exec_module\n File "\u003cfrozen importlib._bootstrap_external\u003e", line 781, in get_code\n File "\u003cfrozen importlib._bootstrap_external\u003e", line 741, in source_to_code\n File "\u003cfrozen importlib._bootstrap\u003e", line 205, in _call_with_frames_removed\n File "/var/user/index.py", line 1\n import requests\n ^\nIndentationError: unexpected indent","statusCode":443}

END RequestId:e7ea34e1-a8f9-47b5-9d5f-f2777c9092c1

Report RequestId:e7ea34e1-a8f9-47b5-9d5f-f2777c9092c1 Duration:0ms Memory:512MB MemUsage:0.000000MB

多账号登录错误

函数服务帮助文档
函数管理
触发管理
监控信息
日志查询
并发配额
部署日志
函数管理
版本:$LATEST
操作
函数配置函数代码层管理监控信息日志查询
提交方法
在线编辑
执行方法
index.main
运行环境
Python3.6
Python3.6 开发教程
下载
1
部署测试
测试事件
Hello World事件模板
{
"key1": "test value 1",
"key2": "test value 2"
}
执行摘要测试失败
请求ID
906e86d5-3720-4e60-aed2-9e8b572fbd4f
运行时间
6,051ms
运行内存
16.71MB
返回结果

Text
没有日志输出

执行日志
START RequestId:906e86d5-3720-4e60-aed2-9e8b572fbd4f

Starting new HTTP connection (1): api.bilibili.com:80

http://api.bilibili.com:80 "GET /x/space/myinfo HTTP/1.1" 200 None

{'status': True, 'userInfo': {'name': '被打断脚的孩纸', 'level': 2, 'coins': 1, 'level_exp': '205/1500', 'silence': 0}}

等级:lv2
硬币:1
经验:205/1500

正在观看视频...

Starting new HTTPS connection (1): api.bilibili.com:443

https://api.bilibili.com:443 "GET /x/web-interface/view?bvid=BV1if4y1g7Qp HTTP/1.1" 200 None

Starting new HTTPS connection (1): api.bilibili.com:443

https://api.bilibili.com:443 "POST /x/click-interface/click/web/h5 HTTP/1.1" 200 32

Starting new HTTPS connection (1): api.bilibili.com:443

https://api.bilibili.com:443 "POST /x/click-interface/web/heartbeat HTTP/1.1" 200 32

Starting new HTTPS connection (1): api.bilibili.com:443

https://api.bilibili.com:443 "POST /x/click-interface/web/heartbeat HTTP/1.1" 200 32

观看视频成功🎉🎉

Starting new HTTPS connection (1): api.bilibili.com:443

https://api.bilibili.com:443 "GET /x/web-interface/popular?ps=50&pn=1 HTTP/1.1" 200 None

获取 50 个视频成功🎉🎉

今日欲投0个硬币

投币完成,正在退出

正在分享视频...

Starting new HTTPS connection (1): api.bilibili.com:443

https://api.bilibili.com:443 "POST /x/web-interface/share/add HTTP/1.1" 200 44

分享视频[不要“做”挑战?(十三期下或十四期)]成功🎉🎉

正在进行漫画签到...

Starting new HTTPS connection (1): manga.bilibili.com:443

https://manga.bilibili.com:443 "POST /twirp/activity.v1.Activity/ClockIn HTTP/1.1" 400 94

{'code': 'invalid_argument', 'msg': 'clockin clockin is duplicate', 'meta': {'argument': 'clockin'}}

漫画签到失败,因为重复签到了

正在尝试直播签到...

Starting new HTTPS connection (1): api.live.bilibili.com:443

https://api.live.bilibili.com:443 "GET /sign/doSign HTTP/1.1" 200 86

直播签到失败,因为今日已签到过,无法重复签到

Starting new HTTPS connection (1): qyapi.weixin.qq.com:443

https://qyapi.weixin.qq.com:443 "GET /cgi-bin/gettoken?corpid=wwb0f51ff43128149c&corpsecret=eJxzUup3HCA-FnMWQyMhOT69Ob_jvHLnrJBvkfZBIcY HTTP/1.1" 200 277

Starting new HTTPS connection (1): qyapi.weixin.qq.com:443

https://qyapi.weixin.qq.com:443 "POST /cgi-bin/message/send?access_token=Cuo1q7haXjSsThpa2vGZzIf-FJw1J64MlGPZshyaP-kksTKgpIYW7h9UNWPsWJMzD96rY3nob-RdzMg7TkhIzFFZ3KV99rMa7AO6Gb2lCppgTtEA2YuoUxR_BZg3c9ivLDbuKONNzRfaPeqxdeFAPVmR0FOZihJunJ5cIXGeYP3rPksmnUdDvvFortJbSL99abaXALzqET_aBoq8j_IuHQ HTTP/1.1" 200 124

{'errcode': 0, 'errmsg': 'ok', 'msgid': 'WpLDpQFMGSE843kRbNhgXbcXHkgJnj2JiKed1yJ47e6QFitr0Nx-WLzlKqVwWwsz44VLAzuI1EONGr-ldgfD0Q'}

Starting new HTTP connection (1): api.bilibili.com:80

http://api.bilibili.com:80 "GET /x/space/myinfo HTTP/1.1" 200 None

{'status': True, 'userInfo': {'name': '默认の称昵', 'level': 3, 'coins': 81, 'level_exp': '1710/4500', 'silence': 0}}

等级:lv3
硬币:81
经验:1710/4500

ERROR RequestId:906e86d5-3720-4e60-aed2-9e8b572fbd4f Result:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Traceback (most recent call last):\n File "/var/user/index.py", line 386, in main\n return start()\n File "/var/user/index.py", line 266, in start\n if want_watch[cindex] == '1':\nIndexError: list index out of range","statusCode":430}

END RequestId:906e86d5-3720-4e60-aed2-9e8b572fbd4f

Report RequestId:906e86d5-3720-4e60-aed2-9e8b572fbd4f Duration:6051ms Memory:128MB MemUsage:16.707031MB

pushplus无法推送信息

START RequestId: 1607c60f-ee94-4571-9502-ccd762507de7

Event RequestId: 1607c60f-ee94-4571-9502-ccd762507de7

Starting new HTTP connection (1): api.bilibili.com:80

http://api.bilibili.com:80 "GET /x/space/myinfo HTTP/1.1" 200 None

等级:lv5

硬币:82

经验:28704/28800

不进行观看...

Starting new HTTPS connection (1): api.bilibili.com:443

https://api.bilibili.com:443 "GET /x/web-interface/popular?ps=50&pn=1 HTTP/1.1" 200 None

获取 50 个视频成功🎉🎉

今日欲投0个硬币

投币完成,正在退出

正在分享视频...

Starting new HTTPS connection (1): api.bilibili.com:443

https://api.bilibili.com:443 "POST /x/web-interface/share/add HTTP/1.1" 200 47

Starting new HTTPS connection (1): api.bilibili.com:443

https://api.bilibili.com:443 "POST /x/web-interface/share/add HTTP/1.1" 200 44

不启用漫画签到...

正在尝试直播签到...

Starting new HTTPS connection (1): api.live.bilibili.com:443

https://api.live.bilibili.com:443 "GET /sign/doSign HTTP/1.1" 200 86

直播签到失败,因为今日已签到过,无法重复签到

Muon的Site

等级:lv5

硬币:82

经验:28704/28800

分享视频[]:完成

漫画未签到,因为:未启用

直播未签到,因为:今日已签到过,无法重复签到

Starting new HTTP connection (1): www.pushplus.plus:80

http://www.pushplus.plus:80 "POST /send HTTP/1.1" 200 None

END RequestId: 1607c60f-ee94-4571-9502-ccd762507de7

Report RequestId: 1607c60f-ee94-4571-9502-ccd762507de7 Duration:1018ms Memory:128MB MemUsage:16.75MB

取cookies全部的值

{"errorCode":1,"errorMessage":"Traceback (most recent call last):\n File "/var/runtime/python3/bootstrap.py", line 133, in init_handler\n func_handler = get_func_handler(file.rsplit(".", 1)[0], func)\n File "/var/runtime/python3/bootstrap.py", line 159, in get_func_handler\n mod = imp.load_module(mname, *imp.find_module(mname))\n File "/var/lang/python3/lib/python3.6/imp.py", line 234, in load_module\n return load_source(name, filename, file)\n File "/var/lang/python3/lib/python3.6/imp.py", line 172, in load_source\n module = _load(spec)\n File "Ϗrozen; importlib._bootstrap>", line 675, in _load\n File "Ϗrozen; importlib._bootstrap>", line 655, in _load_unlocked\n File "Ϗrozen; importlib._bootstrap_external>", line 678, in exec_module\n File "Ϗrozen; importlib._bootstrap>", line 205, in _call_with_frames_removed\n File "/var/user/index.py", line 25, in <module;>\n csrf.append(re.findall('(?<=bili_jct=)(.+?);', i)[0])\nIndexError: list index out of range","requestId":"d7cc4ae6-e476-4e83-957d-dbf3f9d37123","statusCode":443}

云函数报错

FC Invoke Start RequestId: 1-658f4160-18875173447d2689ec39e937
[success] 获取用户信息成功, 用户:
[failed] 获取视频推荐列表失败
[success] 获取硬币投递情况成功, 当前已投币 0 个
2023-12-30 06:00:02 1-658f4160-18875173447d2689ec39e937 [ERROR] {
"errorMessage": "'aid'",
"errorType": "KeyError",
"stackTrace": [
[
"File "/code/index.py"",
"line 38",
"in main",
"res = obj.start()"
],
[
"File "/code/tools.py"",
"line 3",
"in inner",
"res = fn(*args, **kwargs)"
],
[
"File "/code/bilibili.py"",
"line 415",
"in start",
""share": self.share_video(videos), # \u89c6\u9891\u5206\u4eab"
],
[
"File "/code/bilibili.py"",
"line 284",
"in share_video",
""aid": video["aid"],"
]
]
}
FC Invoke End RequestId: 1-658f4160-18875173447d2689ec39e937, Error: Unhandled function error

cookie取值

cookies的值

需要哪个cookie的值
是bili_jct、SESSDATA、还是全值?

push 推送报错

{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Traceback (most recent call last):\n File "/var/user/index.py", line 386, in main\n return start()\n File "/var/user/index.py", line 372, in start\n p.push_message('BiliBili', '\n'.join(msg))\n File "/var/user/push.py", line 108, in push_message\n print(f"发送消息失败: {rep.msg}")\nAttributeError: 'dict' object has no attribute 'msg'","statusCode":430}

pushplus推送问题

是因为URL不一样吗
Starting new HTTP connection (1): www.pushplus.plus:80 http://www.pushplus.plus:80 "POST /send?token=XXXXXXXXXXXXXXXX HTTP/1.1" 200 None 发送消息失败: 无效的用户token

显示的pushplus推送url为www.pushplus.plus,实际应该是pushplus.hxtrip.com,我自己修改之后可以推送成功了

有一定几率发生的错误

连续跑5次,大约两次成功,一次报错,两次卡住(我等了3min就强制关了,可能也是这个超时错误)

Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3.9/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/lib/python3.9/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 358, in connect
conn = self._new_conn()
File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c9c86d0>: Failed to establish a new connection: [Errno 110] Operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/lib/python3.9/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.bilibili.com', port=443): Max retries exceeded with url: /x/web-interface/popular?ps=50&pn=1 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c9c86d0>: Failed to establish a new connection: [Errno 110] Operation timed out'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/ql/data/scripts/ICE99125_BiliBili_Checkin/index.py", line 38, in
main()
File "/ql/data/scripts/ICE99125_BiliBili_Checkin/index.py", line 16, in main
res = b.start(options)
File "/ql/data/scripts/ICE99125_BiliBili_Checkin/bilibili.py", line 8, in inner
res = fn(*args, **kwargs)
File "/ql/data/scripts/ICE99125_BiliBili_Checkin/bilibili.py", line 529, in start
videos = self.video_suggest() # 获取热门视频
File "/ql/data/scripts/ICE99125_BiliBili_Checkin/bilibili.py", line 359, in video_suggest
rep = req.get(
File "/usr/lib/python3.9/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.bilibili.com', port=443): Max retries exceeded with url: /x/web-interface/popular?ps=50&pn=1 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c9c86d0>: Failed to establish a new connection: [Errno 110] Operation timed out'))

或者

Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in validate_conn
conn.connect()
File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 416, in connect
self.sock = ssl_wrap_socket(
File "/usr/lib/python3.9/site-packages/urllib3/util/ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "/usr/lib/python3.9/site-packages/urllib3/util/ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.9/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib/python3.9/ssl.py", line 1309, 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 "/usr/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/lib/python3.9/site-packages/urllib3/util/retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3.9/site-packages/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1010, in validate_conn
conn.connect()
File "/usr/lib/python3.9/site-packages/urllib3/connection.py", line 416, in connect
self.sock = ssl_wrap_socket(
File "/usr/lib/python3.9/site-packages/urllib3/util/ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "/usr/lib/python3.9/site-packages/urllib3/util/ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.9/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/lib/python3.9/ssl.py", line 1309, 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 "/ql/data/scripts/ICE99125_BiliBili_Checkin/index.py", line 38, in
main()
File "/ql/data/scripts/ICE99125_BiliBili_Checkin/index.py", line 16, in main
res = b.start(options)
File "/ql/data/scripts/ICE99125_BiliBili_Checkin/bilibili.py", line 8, in inner
res = fn(*args, **kwargs)
File "/ql/data/scripts/ICE99125_BiliBili_Checkin/bilibili.py", line 535, in start
watch_res = self.watch(videos[0]["bvid"]) # 否则看第一个热门视频
File "/ql/data/scripts/ICE99125_BiliBili_Checkin/bilibili.py", line 499, in watch
rep = req.post(
File "/usr/lib/python3.9/site-packages/requests/api.py", line 117, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3.9/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'))

提示:“失败, 原因: 账号异常,操作失败”

您好,我通过登录账户,输入 document.cookie ,获取cookie 后,放到 config.py中,

测试运行的时候提示”失败, 原因: 账号异常,操作失败“

config.pycookie 部分如下

{
            "cookie": "blackside_state=1; rpdid=|(J|)JkYlkYY0J'uY|muYluR~; xxxxxxxxx; bili_jct=xxx; b_ut=5",
            "options": {
                "watch": True,  # 每日观看视频
                "coins": 2,  # 投币个数
                "share": True,  # 视频分享
                "comics": True,  # 漫画签到
                "lb": True,  # 直播签到
            },

报错如下:

开头:
Invoke function bilibili [RequestId:e137d71d-ff32-4727-808b-808b1a15f6ef]
Response: 
null
Output:
START RequestId: e137d71d-ff32-4727-808b-808b1a15f6ef
Event RequestId: e137d71d-ff32-4727-808b-808b1a15f6ef
ace/share/add HTTP/1.1" 200 63
分享视频[别瞎踢,你不知道草里藏着啥玩意]失败, 原因: 账号异常,操作失败
Starting new HTTPS connection (1): api.bilibili.com:443
https://api.bilibili.com:443 "POST /x/web-interface/share/add HTTP/1.1" 200 63
分享视频[艾尔登法环支线汇总,带你一图看清支线联系!]失败, 原因: 账号异常,操作失败

省略相似报错..........

结尾:
END RequestId: e137d71d-ff32-4727-808b-808b1a15f6ef
Report RequestId: e137d71d-ff32-4727-808b-808b1a15f6ef Duration:12826ms Memory:128MB MemUsage:16.9473MB
Summary:
  Request ID: e137d71d-ff32-4727-808b-808b1a15f6ef
  Run Duration: 12826
  Bill Duration: 12826
  Usage Memory: 16.947303771972656
  Invoke Result: 0

点测试不通过啊,啥问题?

{"errorCode":1,"errorMessage":"Traceback (most recent call last):\n File "/var/runtime/python3/bootstrap.py", line 133, in init_handler\n func_handler = get_func_handler(file.rsplit(".", 1)[0], func)\n File "/var/runtime/python3/bootstrap.py", line 159, in get_func_handler\n mod = imp.load_module(mname, *imp.find_module(mname))\n File "/var/lang/python3/lib/python3.6/imp.py", line 234, in load_module\n return load_source(name, filename, file)\n File "/var/lang/python3/lib/python3.6/imp.py", line 172, in load_source\n module = _load(spec)\n File "Ϗrozen; importlib._bootstrap>", line 675, in _load\n File "Ϗrozen; importlib._bootstrap>", line 655, in _load_unlocked\n File "Ϗrozen; importlib._bootstrap_external>", line 678, in exec_module\n File "Ϗrozen; importlib._bootstrap>", line 205, in _call_with_frames_removed\n File "/var/user/index.py", line 2, in <module;>\n import push\n File "/var/user/push.py", line 7\n <!DOCTYPE html>\n ^\nSyntaxError: invalid syntax","requestId":"e0d2afae-d4f6-4124-a164-3a06c61d0a36","statusCode":443}

执行日志

cookie获取问题

具体需要cookie的那些值啊,最好给一个列式,我是个笨比求大佬告知

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.