惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
Martin Fowler
Martin Fowler
Vercel News
Vercel News
U
Unit 42
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
爱范儿
爱范儿
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog RSS Feed
N
Netflix TechBlog - Medium
GbyAI
GbyAI
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
M
MIT News - Artificial intelligence
D
Docker
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog

泠泫凝的异次元空间

通过串口安装Linux | 泠泫凝的异次元空间 curl自编译 | 泠泫凝的异次元空间 Minecraft 认证服务器代理 | 泠泫凝的异次元空间 飞塔分流配置实战 | 泠泫凝的异次元空间 Windows 安全启动证书检查 | 泠泫凝的异次元空间 Lxn-OneDriveCLI | 泠泫凝的异次元空间 华三交换机配置 ERPS 环网 | 泠泫凝的异次元空间 PVE 配置 VLAN 感知 | 泠泫凝的异次元空间 MT7922 无线网卡安装 | 泠泫凝的异次元空间 无显示输出 Linux 主机配置桌面显示 | 泠泫凝的异次元空间 Wireguard 部署 SOP 手册(自用) | 泠泫凝的异次元空间 Zabbix 7.4 通过钉钉发送告警提醒 | 泠泫凝的异次元空间 Debian with xfce 通过 VNC 共享屏幕 华三S6860 IRF堆叠 | 泠泫凝的异次元空间 iPad 应用侧载 | 泠泫凝的异次元空间 Smart DNS 分区解析 | 泠泫凝的异次元空间 建立 NFS 服务器并挂载到客户端 | 泠泫凝的异次元空间 将 Android 以 MTP 方式连接至 Debian PVE 虚拟机迁移至 vCenter | 泠泫凝的异次元空间 vCenter 虚拟机迁移至 PVE | 泠泫凝的异次元空间 PVE迁移时提示密钥验证失败 | 泠泫凝的异次元空间 修改Windows设备设置区域 | 泠泫凝的异次元空间 恢复 SecureCRT 7.x 保存的密码 | 泠泫凝的异次元空间 PVE 超融合下电与上电流程 | 泠泫凝的异次元空间 记一次Zabbix异常处理 | 泠泫凝的异次元空间 苹果设备保存SHSH2 | 泠泫凝的异次元空间 PVE超融合部署 | 泠泫凝的异次元空间 树莓派启用zram | 泠泫凝的异次元空间 在 Hyper-V 上安装 EVE-NG | 泠泫凝的异次元空间 Zabbix 部署与 Windows 硬件信息收集 | 泠泫凝的异次元空间
bilibili自动签到 | 泠泫凝的异次元空间
Lxn's Area · 2021-06-29 · via 泠泫凝的异次元空间

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是一年过期

参考资料

 上一篇

Linux Android shell