Lxn-Chan!

(~ ̄▽ ̄)→))* ̄▽ ̄*)o

b站签到API和脚本大概逻辑详解

原理

对着找cookie值填进去就行,也可以@cookie.txt这种

ua随便填,我这找了一个IE的

脚本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 主站签到
curl 'https://api.bilibili.com/x/web-interface/nav/stat' \
-H 'authority: api.bilibili.com' \
-H 'accept: application/json, text/plain, */*' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko' \
-H 'origin: https://www.bilibili.com' \
-H 'referer: https://www.bilibili.com/' \
-H 'cookie: _uuid=; buvid3=; bfe_id=; fingerprint=; buvid_fp=; buvid_fp_plain=; sid=; DedeUserID=; DedeUserID__ckMd5=; SESSDATA=; bili_jct='

# 直播签到
curl 'https://api.live.bilibili.com/sign/doSign' \
-H 'authority: api.live.bilibili.com' \
-H 'accept: application/json, text/plain, */*' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko' \
-H 'origin: https://live.bilibili.com' \
-H 'referer: https://live.bilibili.com/' \
-H 'cookie: _uuid=; buvid3=; fingerprint=; buvid_fp=; buvid_fp_plain=; sid=; DedeUserID=; DedeUserID__ckMd5=; SESSDATA=; bili_jct=; PVID=; LIVE_BUVID='

# b漫签到
curl -X POST 'https://manga.bilibili.com/twirp/activity.v1.Activity/ClockIn?platform=ios' \
-H 'accept: application/json, text/plain, */*' \
-H 'user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12F70 Safari/600.1.4' \
-H 'origin: https://live.bilibili.com' \
-H 'referer: https://live.bilibili.com/' \
-H 'cookie: _uuid=; buvid3=; fingerprint=; buvid_fp=; buvid_fp_plain=; sid=; DedeUserID=; DedeUserID__ckMd5=; SESSDATA=; bili_jct=; PVID=; LIVE_BUVID='

补充

b站的cookie是一年过期

参考资料

 简单说两句


联系站长 | 隐私政策 | 用户协议

备案号:辽ICP备19013963-5号

萌ICP备 20219421 号

中国互联网违法和不良信息举报中心

架构版本号:6.5.1 | 本站已全面支持IPv6 |

正在载入运行数据(1/2)请稍后...
正在载入运行数据(2/2)请稍后...

Copyright 2021 LingXuanNing, All rights reserved.