From e0b62e84010319e3baf170bfa6938cd2e6241782 Mon Sep 17 00:00:00 2001 From: SocialSisterYi <45892418+SocialSisterYi@users.noreply.github.com> Date: Fri, 2 Oct 2020 19:49:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E3=80=90=E7=BE=8E=E9=A3=9F?= =?UTF-8?q?=E3=80=91=E5=88=86=E5=8C=BA=E4=BF=A1=E6=81=AF=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96svg=E5=9B=BE=E7=89=87=20=E6=B7=BB=E5=8A=A0=E3=80=90?= =?UTF-8?q?=E4=BA=92=E5=8A=A8=E5=BC=B9=E5=B9=95=E5=8F=91=E9=80=81=E3=80=91?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=20=E6=B7=BB=E5=8A=A0=E3=80=90=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E8=AF=BE=E7=A8=8B=E5=88=97=E8=A1=A8=E3=80=91=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20=E6=B7=BB=E5=8A=A0=E3=80=90=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=8C=85=E8=A7=A3=E9=87=8A=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- danmaku/action.md | 239 ++++++++++++++++++++++++++++++++--- garb/skin.md | 63 ++++++++- imgs/zone/ad.svg | 15 ++- imgs/zone/anime.svg | 17 ++- imgs/zone/cinephile.svg | 15 ++- imgs/zone/comic.svg | 21 ++- imgs/zone/dance.svg | 11 +- imgs/zone/digital.svg | 14 +- imgs/zone/documentary.svg | 32 ++++- imgs/zone/douga.svg | 15 ++- imgs/zone/ent.svg | 18 ++- imgs/zone/fashion.svg | 12 +- imgs/zone/food.svg | 32 +++++ imgs/zone/game.svg | 10 +- imgs/zone/guochuang.svg | 12 +- imgs/zone/information.svg | 18 ++- imgs/zone/kichiku.svg | 17 ++- imgs/zone/life.svg | 9 +- imgs/zone/movie.svg | 12 +- imgs/zone/music.svg | 12 +- imgs/zone/technology.svg | 20 ++- imgs/zone/technology_old.svg | 13 +- imgs/zone/teleplay.svg | 12 +- user/space.md | 157 ++++++++++++++++++++++- video/video_zone.md | 79 +++++++----- 25 files changed, 805 insertions(+), 70 deletions(-) create mode 100644 imgs/zone/food.svg diff --git a/danmaku/action.md b/danmaku/action.md index 6a8b053..95a4b0c 100644 --- a/danmaku/action.md +++ b/danmaku/action.md @@ -10,20 +10,20 @@ **正文参数( application/x-www-form-urlencoded ):** -| 参数名 | 类型 | 内容 | 必要性 | 备注 | -| -------- | ---- | ------------------------ | ------------ | ------------------------------------------------------------ | -| type | num | 1 | 必要 | | -| oid | num | 视频CID | 必要 | | -| msg | str | 弹幕内容 | 必要 | 长度小于100字符 | -| bvid | str | 视频bvID | 必要(可选) | avID与bvID任选一个 | -| aid | num | 视频avID | 必要(可选) | avID与bvID任选一个 | -| progress | num | 弹幕出现在视频内的时间 | 非必要 | 单位为毫秒
默认为0 | -| color | num | 弹幕颜色设置 | 非必要 | 十进制RGB888值
默认为16777215(#FFFFFF)白色 | -| fontsize | num | 弹幕字号设置 | 非必要 | 默认为25 | -| pool | num | 弹幕池选择 | 非必要 | 0:普通池
1:字幕池
2:特殊池(代码/BAS弹幕)
默认为0 | -| mode | num | 弹幕类型选择 | 必要 | 1:普通弹幕
4:底部弹幕
5:顶部弹幕
7:高级弹幕
9:BAS弹幕(`pool`必须为2) | -| rnd | num | 当前时间戳*1000000 | 非必要 | **若无此项,则发送弹幕冷却时间限制为90s**
若有此项,则发送弹幕冷却时间限制为5s | -| csrf | str | CSRF Token(位于cookie) | 必要 | | +| 参数名 | 类型 | 内容 | 必要性 | 备注 | +| -------- | ---- | ------------------------ | -------------- | ------------------------------------------------------------ | +| type | num | 1 | 必要 | | +| oid | num | 视频CID | 必要 | | +| msg | str | 弹幕内容 | 必要 | 长度小于100字符 | +| bvid | str | 视频bvID | 必要(可选) | avID与bvID任选一个 | +| aid | num | 视频avID | 必要(可选) | avID与bvID任选一个 | +| progress | num | 弹幕出现在视频内的时间 | 非必要 | 单位为毫秒
默认为0 | +| color | num | 弹幕颜色设置 | 非必要 | 十进制RGB888值
默认为16777215(#FFFFFF)白色 | +| fontsize | num | 弹幕字号设置 | 非必要 | 默认为25
极小:12
超小:16
小:18
标准:25
大:36
超大:45
极大:64 | +| pool | num | 弹幕池选择 | 非必要 | 0:普通池
1:字幕池
2:特殊池(代码/BAS弹幕)
默认为0 | +| mode | num | 弹幕类型选择 | 必要 | 1:普通弹幕
4:底部弹幕
5:顶部弹幕
7:高级弹幕
9:BAS弹幕(`pool`必须为2) | +| rnd | num | 当前时间戳*1000000 | 非必要 | **若无此项,则发送弹幕冷却时间限制为90s**
若有此项,则发送弹幕冷却时间限制为5s | +| csrf | str | CSRF Token(位于cookie) | Cookie方式必要 | | **json回复:** @@ -47,7 +47,7 @@ **示例:** -为视频`av2`/`BV1xx411c7mD`(CID为`62131`)的5s位置发送一条弹幕`前来考古`(颜色为#FFFFFF,字号25,普通弹幕,游动弹幕) +为视频`av2`/`BV1xx411c7mD`(CID为`62131`)的5000ms位置发送一条弹幕`前来考古`(颜色为#FFFFFF,字号25,普通弹幕,游动弹幕) ```shell curl 'http://api.bilibili.com/x/v2/dm/post'\ @@ -84,6 +84,215 @@ curl 'http://api.bilibili.com/x/v2/dm/post'\ +## 发送互动弹幕 + +> http://api.bilibili.com/x/v2/dm/command/post + +*请求方式:POST* + +认证方式:Cookie(SESSDATA)或APP + +2020-09-25 B站更新了互动弹幕功能,包括UP主头像弹幕、关联视频弹幕、视频内嵌引导关注按钮三大功能 + +详情见: + +[【客户端更新】6.10版本更新!UP主支持发布关联视频弹幕]( https://www.bilibili.com/read/cv7728299 ) + + [引导关注卡片]( https://www.bilibili.com/blackboard/activity-c8a0iDRQy.html ) + +**正文参数( application/x-www-form-urlencoded ):** + +| 参数名 | 类型 | 内容 | 必要性 | 备注 | +| -------- | ---- | ------------------------ | -------------- | ------------------------------------------------------------ | +| type | num | 互动弹幕类型 | 必要 | 1:UP主头像弹幕
2:关联视频弹幕
5:视频内嵌引导关注按钮 | +| aid | num | 视频avID | 必要 | | +| cid | num | 视频CID | 必要 | | +| progress | num | 弹幕出现在视频内的时间 | 非必要 | 单位为毫秒
默认为0 | +| plat | num | 平台标识 | 必要 | 1:web端
2:安卓端
8:视频管理页面 | +| data | str | json序列 | 必要 | | +| dmid | num | 修改互动弹幕的弹幕ID | 非必要 | 注:修改弹幕`plat`必须为8 | +| csrf | str | CSRF Token(位于cookie) | Cookie方式必要 | | + +`data`参数: + +类型为【UP主头像弹幕】时: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | -------- | ---- | +| msg | str | 弹幕内容 | | + +类型为【关联视频弹幕】时: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | -------------- | ---- | +| msg | str | 弹幕内容 | | +| bvid | str | 关联视频的bvID | | + +类型为【视频内嵌引导关注按钮】时: + +| 字段 | 类型 | 内容 | 备注 | +| -------- | ---- | -------- | --------------- | +| duration | num | 持续时间 | 单位为毫秒 | +| posX | num | X坐标 | 区间:[118-549] | +| posY | num | Y坐标 | 区间:[82-293] | + +**json回复:** + +根对象: + +| 字段 | 类型 | 内容 | 备注 | +| ------- | ----------------------------- | -------- | ------------------------------------------------------------ | +| code | num | 返回值 | 0:成功
-101:账号未登录
-102:账号被封停
-111:csrf校验失败
-400:请求错误
-404:无此项
-500:服务器错误
36711:该视频禁止发送弹幕
79026:发送失败,请勿填写当前稿件BVID
79024:发送失败,请输入正确的BVID
79036:该指令弹幕超出限制
79037:关注弹幕坐标溢出 | +| message | str | 错误信息 | 默认为0 | +| ttl | num | 1 | | +| data | 正确时:obj
错误时:null | 信息本体 | | + +`data`对象: + +| 字段 | 类型 | 内容 | 备注 | +| -------- | ---- | ---------------------- | ------------------------------------------------------------ | +| command | str | 指令? | UP主头像弹幕:#UP#
关联视频弹幕:#LINK#
视频内嵌引导关注按钮:#ATTENTION# | +| content | str | 弹幕内容 | | +| extra | str | 弹幕数据 | json序列 | +| id | num | 弹幕dmID | | +| idStr | str | 弹幕dmID | 字串形式 | +| mid | num | 用户UID | | +| oid | num | 视频CID | | +| progress | num | 弹幕出现在视频内的时间 | | +| type | num | 互动弹幕类型 | 1:UP主头像弹幕
2:关联视频弹幕
5:视频内嵌引导关注按钮 | + +`extra`序列数据: + +类型为【UP主头像弹幕】时: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | ----------- | ---- | +| icon | str | UP主头像url | | + +类型为【关联视频弹幕】时: + +| 字段 | 类型 | 内容 | 备注 | +| ----- | ---- | -------------- | ---- | +| aid | num | 关联视频的avID | | +| title | str | 关联视频的标题 | | +| bvid | str | 关联视频的bvID | | + +**示例:** + +为视频`av201947622`(CID为`230709860`)的5000ms位置发送一条UP主头像弹幕`test` + +```shell +curl 'http://api.bilibili.com/x/v2/dm/command/post'\ +--data-urlencode 'type=1'\ +--data-urlencode 'aid=201947622'\ +--data-urlencode 'cid=230709860'\ +--data-urlencode 'progress=5000'\ +--data-urlencode 'plat=1'\ +--data-urlencode 'data={"msg":"test"}'\ +--data-urlencode 'csrf=xxx'\ +-b 'SESSDATA=xxx' +``` + +
+查看响应示例: + +```json +{ + "code": 0, + "message": "0", + "ttl": 1, + "data": { + "id": 39053842117558279, + "oid": 230709860, + "mid": 293793435, + "type": 1, + "command": "#UP#", + "content": "test", + "extra": "{\"icon\":\"http://i0.hdslb.com/bfs/face/aebb2639a0d47f2ce1fec0631f412eaf53d4a0be.jpg\"}", + "idStr": "39053842117558279" + } +} +``` + +
+ +为视频`av201947622`(CID为`230709860`)的5000ms位置发送一条发送关联视频弹幕`测试1234`关联视频为`BV1kz4y1X7XP` + +```shell +curl 'http://api.bilibili.com/x/v2/dm/command/post'\ +--data-urlencode 'type=2'\ +--data-urlencode 'aid=201947622'\ +--data-urlencode 'cid=230709860'\ +--data-urlencode 'progress=5000'\ +--data-urlencode 'plat=1'\ +--data-urlencode 'data={"bvid":"BV1kz4y1X7XP","msg":"测试1234"}'\ +--data-urlencode 'csrf=xxx'\ +-b 'SESSDATA=xxx' +``` + +
+查看响应示例: + +```json +{ + "code": 0, + "message": "0", + "ttl": 1, + "data": { + "id": 39054383689236483, + "oid": 230709860, + "mid": 293793435, + "type": 2, + "command": "#LINK#", + "content": "测试1234", + "progress": 11925, + "extra": "{\"aid\":583785685,\"title\":\"【cmd】访问api 命令行也能上B站\",\"bvid\":\"BV1kz4y1X7XP\"}", + "idStr": "39054383689236483" + } +} +``` + +
+ + +为视频`av201947622`(CID为`230709860`)的5000ms位置发送视频内嵌引导关注按钮,X坐标为118,Y坐标为82,持续时间为5000ms + +```shell +curl 'http://api.bilibili.com/x/v2/dm/command/post'\ +--data-urlencode 'type=5'\ +--data-urlencode 'aid=201947622'\ +--data-urlencode 'cid=230709860'\ +--data-urlencode 'progress=5000'\ +--data-urlencode 'plat=1'\ +--data-urlencode 'data={"duration":5000,"posX":118,"posY":82}'\ +--data-urlencode 'csrf=xxx'\ +-b 'SESSDATA=xxx' +``` + +
+查看响应示例: + +```json +{ + "code": 0, + "message": "0", + "ttl": 1, + "data": { + "id": 39055158405496839, + "oid": 230709860, + "mid": 293793435, + "type": 5, + "command": "#ATTENTION#", + "progress": 5000, + "extra": "{\"duration\":5000,\"posX\":118,\"posY\":82}", + "idStr": "39055158405496839" + } +} +``` + +
+ + ## 撤回弹幕 > http://api.bilibili.com/x/dm/recall diff --git a/garb/skin.md b/garb/skin.md index cff473f..b3705c0 100644 --- a/garb/skin.md +++ b/garb/skin.md @@ -190,4 +190,65 @@ curl -G 'http://app.bilibili.com/x/resource/show/skin'\ } ``` - \ No newline at end of file + + +## 主题包结构 + +主题包为app端付费主题(套装)的整合包,以zip格式通过url分发 + +包内的图片文件为app对应的资源替换 + +| 文件名 | 说明 | +| ------------------------------ | -------------------------- | +| tail_icon_selected_myself.png | 【我的】按钮(选中状态) | +| head_bg.jpg | 首页顶部栏背景 | +| head_tab_bg.jpg | 顶部栏背景 | +| side_bg.jpg | 侧边栏背景 | +| side_bg_bottom.jpg | 侧边栏底部背景 | +| tail_bg.png | 底部栏背景 | +| tail_icon_main.png | 【首页】按钮 | +| tail_icon_selected_main.png | 【首页】按钮(选中状态) | +| tail_icon_selected_channel.png | 【频道】按钮(选中状态) | +| head_myself_squared_bg.jpg | 【我的】页面头图(大) | +| tail_icon_channel.png | 【频道】按钮 | +| tail_icon_selected_dynamic.png | 【动态】按钮(选中状态) | +| head_myself_bg.jpg | 【我的】页面头图(小) | +| tail_icon_dynamic.png | 【动态】按钮 | +| tail_icon_shop.png | 【会员购】按钮 | +| tail_icon_selected_shop.png | 【会员购】按钮(选中状态) | +| tail_icon_myself.png | 【我的】按钮 | + +以`id=2529(初音未来-日版)`的资源为例 + +```shell +wget http://i0.hdslb.com/bfs/garb/zip/9c393edea0c7b7b59685a20cd655363ef573a325.zip +unzip -l 9c393edea0c7b7b59685a20cd655363ef573a325.zip +``` + +返回为 + +``` +Archive: 9c393edea0c7b7b59685a20cd655363ef573a325.zip + Length Date Time Name +--------- ---------- ----- ---- + 22995 1980-00-00 00:00 tail_icon_selected_myself.png + 18444 1980-00-00 00:00 head_bg.jpg + 3061 1980-00-00 00:00 head_tab_bg.jpg + 188898 1980-00-00 00:00 side_bg.jpg + 2842 1980-00-00 00:00 side_bg_bottom.jpg + 203134 1980-00-00 00:00 tail_bg.png + 27539 1980-00-00 00:00 tail_icon_main.png + 25632 1980-00-00 00:00 tail_icon_selected_main.png + 27415 1980-00-00 00:00 tail_icon_selected_channel.png + 191706 1980-00-00 00:00 head_myself_squared_bg.jpg + 27919 1980-00-00 00:00 tail_icon_channel.png + 27262 1980-00-00 00:00 tail_icon_selected_dynamic.png + 147738 1980-00-00 00:00 head_myself_bg.jpg + 28182 1980-00-00 00:00 tail_icon_dynamic.png + 25878 1980-00-00 00:00 tail_icon_shop.png + 26487 1980-00-00 00:00 tail_icon_selected_shop.png + 21831 1980-00-00 00:00 tail_icon_myself.png +--------- ------- + 1016963 17 files +``` + diff --git a/imgs/zone/ad.svg b/imgs/zone/ad.svg index df3e864..3004bbf 100644 --- a/imgs/zone/ad.svg +++ b/imgs/zone/ad.svg @@ -1 +1,14 @@ - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/imgs/zone/anime.svg b/imgs/zone/anime.svg index b14cde2..fd797d3 100644 --- a/imgs/zone/anime.svg +++ b/imgs/zone/anime.svg @@ -1 +1,16 @@ - \ No newline at end of file + + + + + + + + + \ No newline at end of file diff --git a/imgs/zone/cinephile.svg b/imgs/zone/cinephile.svg index 3b9edec..cad39f4 100644 --- a/imgs/zone/cinephile.svg +++ b/imgs/zone/cinephile.svg @@ -1 +1,14 @@ - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/imgs/zone/comic.svg b/imgs/zone/comic.svg index d06eb4f..bb78da2 100644 --- a/imgs/zone/comic.svg +++ b/imgs/zone/comic.svg @@ -1 +1,20 @@ - \ No newline at end of file + + + + + + + + \ No newline at end of file diff --git a/imgs/zone/dance.svg b/imgs/zone/dance.svg index ab10c54..87a5ad1 100644 --- a/imgs/zone/dance.svg +++ b/imgs/zone/dance.svg @@ -1 +1,10 @@ - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/imgs/zone/digital.svg b/imgs/zone/digital.svg index 1af51ac..56ea8f9 100644 --- a/imgs/zone/digital.svg +++ b/imgs/zone/digital.svg @@ -1 +1,13 @@ - \ No newline at end of file + + + + + + + + \ No newline at end of file diff --git a/imgs/zone/documentary.svg b/imgs/zone/documentary.svg index 3045302..fcaf707 100644 --- a/imgs/zone/documentary.svg +++ b/imgs/zone/documentary.svg @@ -1 +1,31 @@ - \ No newline at end of file + + + + + + + + + + + + + \ No newline at end of file diff --git a/imgs/zone/douga.svg b/imgs/zone/douga.svg index 4ed0121..5cf324c 100644 --- a/imgs/zone/douga.svg +++ b/imgs/zone/douga.svg @@ -1 +1,14 @@ - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/imgs/zone/ent.svg b/imgs/zone/ent.svg index e3fa738..d938420 100644 --- a/imgs/zone/ent.svg +++ b/imgs/zone/ent.svg @@ -1 +1,17 @@ - \ No newline at end of file + + + + + + + \ No newline at end of file diff --git a/imgs/zone/fashion.svg b/imgs/zone/fashion.svg index a2edcac..cfb6621 100644 --- a/imgs/zone/fashion.svg +++ b/imgs/zone/fashion.svg @@ -1 +1,11 @@ - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/imgs/zone/food.svg b/imgs/zone/food.svg new file mode 100644 index 0000000..e554eb5 --- /dev/null +++ b/imgs/zone/food.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/imgs/zone/game.svg b/imgs/zone/game.svg index f51a616..59a2188 100644 --- a/imgs/zone/game.svg +++ b/imgs/zone/game.svg @@ -1 +1,9 @@ - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/imgs/zone/guochuang.svg b/imgs/zone/guochuang.svg index c88ff7d..a10c3e9 100644 --- a/imgs/zone/guochuang.svg +++ b/imgs/zone/guochuang.svg @@ -1 +1,11 @@ - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/imgs/zone/information.svg b/imgs/zone/information.svg index 3477b55..c33d838 100644 --- a/imgs/zone/information.svg +++ b/imgs/zone/information.svg @@ -1 +1,17 @@ - \ No newline at end of file + + + + + + + \ No newline at end of file diff --git a/imgs/zone/kichiku.svg b/imgs/zone/kichiku.svg index 79976ca..2d74f85 100644 --- a/imgs/zone/kichiku.svg +++ b/imgs/zone/kichiku.svg @@ -1 +1,16 @@ - \ No newline at end of file + + + + + + + + \ No newline at end of file diff --git a/imgs/zone/life.svg b/imgs/zone/life.svg index e352afc..ad03a79 100644 --- a/imgs/zone/life.svg +++ b/imgs/zone/life.svg @@ -1 +1,8 @@ - \ No newline at end of file + + + + \ No newline at end of file diff --git a/imgs/zone/movie.svg b/imgs/zone/movie.svg index 0556131..5f691a4 100644 --- a/imgs/zone/movie.svg +++ b/imgs/zone/movie.svg @@ -1 +1,11 @@ - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/imgs/zone/music.svg b/imgs/zone/music.svg index a0b7540..408c93c 100644 --- a/imgs/zone/music.svg +++ b/imgs/zone/music.svg @@ -1 +1,11 @@ - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/imgs/zone/technology.svg b/imgs/zone/technology.svg index 3418aa6..8ede0d7 100644 --- a/imgs/zone/technology.svg +++ b/imgs/zone/technology.svg @@ -1,2 +1,18 @@ - - + + + + + + + + + \ No newline at end of file diff --git a/imgs/zone/technology_old.svg b/imgs/zone/technology_old.svg index 0a31b9b..4c3795b 100644 --- a/imgs/zone/technology_old.svg +++ b/imgs/zone/technology_old.svg @@ -1 +1,12 @@ - \ No newline at end of file + + + + + + \ No newline at end of file diff --git a/imgs/zone/teleplay.svg b/imgs/zone/teleplay.svg index 41a652b..a6a39af 100644 --- a/imgs/zone/teleplay.svg +++ b/imgs/zone/teleplay.svg @@ -1 +1,11 @@ - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/user/space.md b/user/space.md index 05181e1..9049532 100644 --- a/user/space.md +++ b/user/space.md @@ -2753,11 +2753,166 @@ curl -G 'http://api.bilibili.com/x/v3/fav/folder/collected/list'\ +## 课程 + + + +### 查询用户发布的课程列表 + +> http://api.bilibili.com/pugv/app/web/season/page + +*请求方式:GET* + +**url参数:** + +| 参数名 | 类型 | 内容 | 必要性 | 备注 | +| ------ | ---- | ----------- | ------ | -------- | +| mid | num | 目标用户UID | 必要 | | +| pn | num | 页码 | 非必要 | 默认为1 | +| ps | num | 每页项数 | 非必要 | 默认为20 | + +**json回复:** + +根对象: + +| 字段 | 类型 | 内容 | 备注 | +| ------- | ---- | -------- | ---------------------------------------------------------- | +| code | num | 返回值 | 0:成功
-400:请求错误
53013:用户隐私设置未公开 | +| message | str | 错误信息 | 默认为0 | +| ttl | num | 1 | | +| data | obj | 信息本体 | | + +`data`对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ----- | -------- | ---- | +| list | array | 课程列表 | | +| page | obj | 页面信息 | | + +`data`中的`page`对象: + +| 字段 | 类型 | 内容 | 备注 | +| ----- | ---- | -------------- | ------------------------------------- | +| next | bool | 是否存在下一页 | false:最后一页
true:存在下一页 | +| num | num | 当前页码 | | +| size | num | 每页项数 | | +| total | num | 总计项数 | | + +`data`中的`list`数组: + +| 项 | 类型 | 内容 | 备注 | +| ---- | ---- | ----------- | -------------------------- | +| 0 | obj | 课程1 | | +| n | obj | 课程(n+1) | 按照目标用户的发布顺序排列 | +| …… | obj | …… | | + +`data`中的`list`数组中的对象: + +| 字段 | 类型 | 内容 | 备注 | +| --------- | ---- | ------------ | ------------- | +| cover | str | 课程封面url | | +| ep_count | num | 课程集数 | | +| link | str | 课程页面url | 手机版页面url | +| page | num | 1 | 作用尚不明确 | +| play | num | 课程播放数 | | +| season_id | num | 课程ssID | | +| status | str | 更新状态说明 | | +| subtitle | str | 课程副标题 | | +| title | str | 课程标题 | | + +**示例:** + +查询用户`UID=33683045`的课程发布列表 + +```shell +curl -G 'http://api.bilibili.com/pugv/app/web/season/page'\ +--data-urlencode 'mid=33683045'\ +--data-urlencode 'ps=5'\ +--data-urlencode 'pn=1' +``` + +
+查看响应示例: + +```json +{ + "code": 0, + "data": { + "items": [ + { + "cover": "http://i0.hdslb.com/bfs/archive/596575057885fff7f0ceff047437186cba459358.jpg", + "ep_count": 10, + "link": "https://m.bilibili.com/cheese/play/ss80", + "page": 1, + "play": 174467, + "season_id": 80, + "status": "共10期", + "subtitle": "百科全书式军事科普短视频系列", + "title": "《战忽知道》第一季" + }, + { + "cover": "http://i0.hdslb.com/bfs/archive/322aa94d27cece62d2a859caf71ac2426f29eee2.jpg", + "ep_count": 1, + "link": "https://m.bilibili.com/cheese/play/ss145", + "page": 1, + "play": 22155, + "season_id": 145, + "status": "更新至第1期", + "subtitle": "此课程为《局座:第四次工业革命来了》部分集数,请谨慎购买", + "title": "【体验课】局座讲5G:5G如何改变我们的生活?" + }, + { + "cover": "http://i0.hdslb.com/bfs/archive/b9794ac4507f8764e219df413b661b5faf499a19.jpg", + "ep_count": 10, + "link": "https://m.bilibili.com/cheese/play/ss113", + "page": 1, + "play": 49833, + "season_id": 113, + "status": "更新至第10期", + "subtitle": "百科全书式军事科普短视频系列", + "title": "《战忽知道》第二季" + }, + { + "cover": "http://i0.hdslb.com/bfs/archive/7351fcb33592a4bc7aac9f71d421b4b5ce0177d3.jpg", + "ep_count": 10, + "link": "https://m.bilibili.com/cheese/play/ss51", + "page": 1, + "play": 4981037, + "season_id": 51, + "status": "共10期", + "subtitle": "洞悉国际局势,学习战略思维", + "title": "局座的国际战略课" + }, + { + "cover": "http://i0.hdslb.com/bfs/archive/31e2a170b5a815e34f0537a2727b28f1b87dca18.jpg", + "ep_count": 10, + "link": "https://m.bilibili.com/cheese/play/ss121", + "page": 1, + "play": 30754, + "season_id": 121, + "status": "更新至第10期", + "subtitle": "百科全书式军事科普短视频系列", + "title": "《战忽知道》第三季" + } + ], + "page": { + "next": true, + "num": 1, + "size": 5, + "total": 8 + } + }, + "message": "success" +} +``` + +
+ ## 订阅 -### 订阅查询用户追番预览列表 +### 查询用户追番预览列表 > http://space.bilibili.com/ajax/Bangumi/getList diff --git a/video/video_zone.md b/video/video_zone.md index 9392d9a..5312939 100644 --- a/video/video_zone.md +++ b/video/video_zone.md @@ -90,22 +90,22 @@ ## 知识(~~原科技分区~~) -**已改版** +(已改版) 新:旧: -| 名称 | 代号 | tID | 简介 | url路由 | -| ----------------------------- | ----------------- | ---- | --------------------------------------------------------- | ------------------------------------------------------------ | -| 知识(主分区) | technology | 36 | | [/v/technology](https://www.bilibili.com/v/technology) | -| 科学科普 | science | 201 | 回答你的十万个为什么 | [/v/technology/science](https://www.bilibili.com/v/technology/science) | -| 社科人文(~~趣味科普人文~~) | fun | 124 | 聊聊财经/社会/法律,看看历史趣闻,品品人文艺术 | [/v/technology/fun](https://www.bilibili.com/v/technology/fun) | -| 财经 | finance | 207 | 宏观经济分析,证券市场动态,商业帝国故事,知识与财富齐飞~ | [/v/technology/finance](https://www.bilibili.com/v/technology/finance) | -| 校园学习 | campus | 208 | 老师很有趣,同学多人才,我们都爱搞学习 | [/v/technology/campus](https://www.bilibili.com/v/technology/campus) | -| 职业职场 | career | 209 | 职场加油站,成为最有料的职场人 | [/v/technology/career](https://www.bilibili.com/v/technology/career) | -| 野生技术协会 | wild | 122 | 是时候展现真正的技术了 | [/v/technology/wild](https://www.bilibili.com/v/technology/wild) | -| ~~演讲·公开课~~(目前已下线) | ~~speech_course~~ | 39 | ~~涨知识的好地方,给爱学习的你~~ | ~~/v/technology/speech_course~~ | -| ~~星海~~(目前已下线) | ~~military~~ | 96 | ~~军事类内容的圣地~~ | ~~/v/technology/military~~ | -| ~~机械~~(目前已下线) | ~~mechanical~~ | 98 | ~~机械设备展示或制作视频~~ | ~~/v/technology/mechanical~~ | +| 名称 | 代号 | tID | 简介 | url路由 | +| ---------------------------- | ----------------- | ---- | --------------------------------------------------------- | ------------------------------------------------------------ | +| 知识(主分区) | technology | 36 | | [/v/technology](https://www.bilibili.com/v/technology) | +| 科学科普 | science | 201 | 回答你的十万个为什么 | [/v/technology/science](https://www.bilibili.com/v/technology/science) | +| 社科人文(~~趣味科普人文~~) | fun | 124 | 聊聊财经/社会/法律,看看历史趣闻,品品人文艺术 | [/v/technology/fun](https://www.bilibili.com/v/technology/fun) | +| 财经 | finance | 207 | 宏观经济分析,证券市场动态,商业帝国故事,知识与财富齐飞~ | [/v/technology/finance](https://www.bilibili.com/v/technology/finance) | +| 校园学习 | campus | 208 | 老师很有趣,同学多人才,我们都爱搞学习 | [/v/technology/campus](https://www.bilibili.com/v/technology/campus) | +| 职业职场 | career | 209 | 职场加油站,成为最有料的职场人 | [/v/technology/career](https://www.bilibili.com/v/technology/career) | +| 野生技术协会 | wild | 122 | 是时候展现真正的技术了 | [/v/technology/wild](https://www.bilibili.com/v/technology/wild) | +| ~~演讲·公开课~~(已下线) | ~~speech_course~~ | 39 | ~~涨知识的好地方,给爱学习的你~~ | ~~/v/technology/speech_course~~ | +| ~~星海~~(已下线) | ~~military~~ | 96 | ~~军事类内容的圣地~~ | ~~/v/technology/military~~ | +| ~~机械~~(已下线) | ~~mechanical~~ | 98 | ~~机械设备展示或制作视频~~ | ~~/v/technology/mechanical~~ | ## 数码 @@ -121,22 +121,37 @@ ## 生活 -**已改版** +(已改版) -| 名称 | 代号 | tID | 简介 | url路由 | -| -------------- | ---------- | ---- | ----------------------------------------------------- | ------------------------------------------------------------ | -| 生活(主分区) | life | 160 | | [/v/life](https://www.bilibili.com/v/life) | -| 搞笑 | funny | 138 | 搞笑的、轻松有趣的、具有独特笑点或娱乐精神的视频 | [/v/life/funny](https://www.bilibili.com/v/life/funny) | -| 日常 | daily | 21 | 漫展、cosplay、体育运动及其他一般日常向视频 | [/v/life/daily](https://www.bilibili.com/v/life/daily) | -| 美食圈 | food | 76 | 美食鉴赏&料理制作教程 | [/v/life/food](https://www.bilibili.com/v/life/food) | -| 动物圈 | animal | 75 | 这里有各种萌萌哒动物哦 | [/v/life/animal](https://www.bilibili.com/v/life/animal) | -| 手工 | handmake | 161 | 简易手工艺品的diy制作视频,例如;折纸、手账、橡皮章等 | [/v/life/handmake](https://www.bilibili.com/v/life/handmake) | -| 绘画 | painting | 162 | 绘画爱好者们关于绘画技巧、绘图过程的分享交流场所 | [/v/life/painting](https://www.bilibili.com/v/life/painting) | -| 运动 | sports | 163 | 一般向运动项目以及惊险刺激的户外极限运动 | [/v/life/sports](https://www.bilibili.com/v/life/sports) | -| 汽车 | automobile | 176 | 专业汽车资讯,分享车生活 | [/v/life/automobile](https://www.bilibili.com/v/life/automobile) | -| 其他 | other | 174 | 对于分区归属不明的视频进行归纳整合的特定分区 | [/v/life/other](https://www.bilibili.com/v/life/other) | +| 名称 | 代号 | tID | 简介 | url路由 | +| -------------------- | ---------- | ------ | ----------------------------------------------------- | ------------------------------------------------------------ | +| 生活(主分区) | life | 160 | | [/v/life](https://www.bilibili.com/v/life) | +| 搞笑 | funny | 138 | 搞笑的、轻松有趣的、具有独特笑点或娱乐精神的视频 | [/v/life/funny](https://www.bilibili.com/v/life/funny) | +| 日常 | daily | 21 | 漫展、cosplay、体育运动及其他一般日常向视频 | [/v/life/daily](https://www.bilibili.com/v/life/daily) | +| ~~美食圈~~(重定向) | ~~food~~ | ~~76~~ | ~~美食鉴赏&料理制作教程~~ | ~~/v/life/food~~ | +| 动物圈 | animal | 75 | 这里有各种萌萌哒动物哦 | [/v/life/animal](https://www.bilibili.com/v/life/animal) | +| 手工 | handmake | 161 | 简易手工艺品的diy制作视频,例如;折纸、手账、橡皮章等 | [/v/life/handmake](https://www.bilibili.com/v/life/handmake) | +| 绘画 | painting | 162 | 绘画爱好者们关于绘画技巧、绘图过程的分享交流场所 | [/v/life/painting](https://www.bilibili.com/v/life/painting) | +| 运动 | sports | 163 | 一般向运动项目以及惊险刺激的户外极限运动 | [/v/life/sports](https://www.bilibili.com/v/life/sports) | +| 汽车 | automobile | 176 | 专业汽车资讯,分享车生活 | [/v/life/automobile](https://www.bilibili.com/v/life/automobile) | +| 其他 | other | 174 | 对于分区归属不明的视频进行归纳整合的特定分区 | [/v/life/other](https://www.bilibili.com/v/life/other) | + +## 美食 + +(新分区) + + + +| 名称 | 代号 | tID | 简介 | url路由 | +| ------------------------------ | ----------- | ---- | -------------------------------- | ------------------------------------------------------------ | +| 美食(主分区) | food | 211 | | [/v/food](https://www.bilibili.com/v/food) | +| 美食制作(原[生活]->[美食圈]) | make | 76 | 学做人间美味,展示精湛厨艺 | [/v/food/make](https://www.bilibili.com/v/food/make) | +| 美食侦探 | detective | 212 | 寻找美味餐厅,发现街头美食 | [/v/food/detective](https://www.bilibili.com/v/food/detective) | +| 美食测评 | measurement | 213 | 吃货世界,品尝世间美味 | [/v/food/measurement](https://www.bilibili.com/v/food/measurement) | +| 田园美食 | rural | 214 | 品味乡野美食,寻找山与海的味道 | [/v/food/rural](https://www.bilibili.com/v/food/rural) | +| 美食记录 | record | 215 | 记录一日三餐,给生活添一点幸福感 | [/v/food/record](https://www.bilibili.com/v/food/record) | ## 鬼畜 @@ -165,7 +180,7 @@ ## 资讯 -**新分区** +(新分区) @@ -179,14 +194,14 @@ ## ~~广告~~ -**目前已下线** +(已下线) -| 名称 | 代号 | tID | 简介 | url路由 | -| ------------------ | ------ | ---- | ---- | ------------ | -| ~~广告(主分区)~~ | ~~ad~~ | 165 | | ~~/v/ad~~ | -| ~~广告~~ | ~~ad~~ | 166 | | ~~/v/ad/ad~~ | +| 名称 | 代号 | tID | 简介 | url路由 | +| ------------------ | ------ | ------- | ---- | ------------ | +| ~~广告(主分区)~~ | ~~ad~~ | ~~165~~ | | ~~/v/ad~~ | +| ~~广告~~ | ~~ad~~ | ~~166~~ | | ~~/v/ad/ad~~ | ## 娱乐