From 89e6325b5d4da412f614bdcb8a22f58de555a68a Mon Sep 17 00:00:00 2001
From: MineCreeper86 <61276297+MineCreeper86@users.noreply.github.com>
Date: Fri, 7 Aug 2020 20:43:15 +0800
Subject: [PATCH 1/8] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E7=BC=96=E5=86=99?=
=?UTF-8?q?=E5=B7=A5=E7=A8=8B=EF=BC=8C=E5=B0=BD=E9=87=8F=E6=A8=A1=E4=BB=BF?=
=?UTF-8?q?=E5=8E=9F=E6=A0=BC=E5=BC=8F=E4=B8=8D=E5=8F=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
article/articles.md | 1 +
1 file changed, 1 insertion(+)
create mode 100644 article/articles.md
diff --git a/article/articles.md b/article/articles.md
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/article/articles.md
@@ -0,0 +1 @@
+
From 340c95cdbb9cf23b066d4a5fa121ff17f21bcb8d Mon Sep 17 00:00:00 2001
From: MineCreeper86 <61276297+MineCreeper86@users.noreply.github.com>
Date: Fri, 7 Aug 2020 21:50:28 +0800
Subject: [PATCH 2/8] =?UTF-8?q?=E5=85=88=E4=BF=9D=E5=AD=98=E4=B8=80?=
=?UTF-8?q?=E4=B8=8B=E2=91=A7=20QAQ?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
article/articles.md | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/article/articles.md b/article/articles.md
index 8b13789..26018f4 100644
--- a/article/articles.md
+++ b/article/articles.md
@@ -1 +1,32 @@
+# 文集基本信息
+## 获取文集基本信息
+
+> https://api.bilibili.com/x/article/list/web/articles
+
+*请求方式:GET*
+
+认证方式:我不确定,dalao你帮我写吧
+
+**url参数:**
+
+| 参数名 | 类型 | 内容 | 必要性 | 备注 |
+| ------ | ---- | -------- | ------ | ---- |
+| id | num | 文集rlID | 必要 | |
+
+**json回复:**
+
+根对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ------- | ---- | -------- | ----------------------------------------------- |
+| code | num | 返回值 | 0:成功
-400:请求错误
-404:无此信息 |
+| message | str | 错误信息 | 默认为0 |
+| ttl | num | 1 | |
+| data | obj | 信息本体 | |
+
+`data`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ----------------- | ------ | ---------- | -------|
+| list | obj | 文集概览 | |
From 8d9f1d89b046bdf60b89d23a95d14a9ad37961c2 Mon Sep 17 00:00:00 2001
From: MineCreeper86 <61276297+MineCreeper86@users.noreply.github.com>
Date: Fri, 7 Aug 2020 22:08:45 +0800
Subject: [PATCH 3/8] =?UTF-8?q?=E9=BB=98=E9=BB=98commit=E4=B8=80=E4=B8=8B?=
=?UTF-8?q?=E8=A1=A8=E6=98=8E=E6=88=91=E8=BF=98=E6=B4=BB=E7=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
data对象写完了
---
article/articles.md | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/article/articles.md b/article/articles.md
index 26018f4..8ed2356 100644
--- a/article/articles.md
+++ b/article/articles.md
@@ -27,6 +27,12 @@
`data`对象:
-| 字段 | 类型 | 内容 | 备注 |
-| ----------------- | ------ | ---------- | -------|
-| list | obj | 文集概览 | |
+| 字段 | 类型 | 内容 | 备注 |
+| --------- | ----- | ---------------- | --------------------------------------------------------------------------- |
+| list | obj | 文集概览 | |
+| articles | array | 文集内的专栏列表 | |
+| author | obj | 文集作者 | |
+| last | obj | | 作用尚不明确
结构与data.articles[]中相似 |
+| attention | bool | 是否关注文集作者 | false:未关注
true:已关注
需要登录(SESSDATA)
未登录为false |
+
+`data`中的`list`对象:
\ No newline at end of file
From 51408fde08ed6fdd63f88b46dbef671e5ef37840 Mon Sep 17 00:00:00 2001
From: MineCreeper86 <61276297+MineCreeper86@users.noreply.github.com>
Date: Sat, 8 Aug 2020 12:49:08 +0800
Subject: [PATCH 4/8] =?UTF-8?q?list=E5=AF=B9=E8=B1=A1=E7=8C=9B=E8=82=9D?=
=?UTF-8?q?=EF=BC=8C=E5=90=8E=E9=9D=A2=E9=82=A3=E4=BB=80=E4=B9=88=E7=8E=A9?=
=?UTF-8?q?=E6=84=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
article/articles.md | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/article/articles.md b/article/articles.md
index 8ed2356..b4ec200 100644
--- a/article/articles.md
+++ b/article/articles.md
@@ -30,9 +30,24 @@
| 字段 | 类型 | 内容 | 备注 |
| --------- | ----- | ---------------- | --------------------------------------------------------------------------- |
| list | obj | 文集概览 | |
-| articles | array | 文集内的专栏列表 | |
+| articles | array | 文集内的文章列表 | |
| author | obj | 文集作者 | |
| last | obj | | 作用尚不明确
结构与data.articles[]中相似 |
| attention | bool | 是否关注文集作者 | false:未关注
true:已关注
需要登录(SESSDATA)
未登录为false |
-`data`中的`list`对象:
\ No newline at end of file
+`data`中的`list`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| -------------- | ---- | ------------ | ------------------------ |
+| id | num | 文集ID | |
+| mid | num | 文集作者UID | |
+| name | str | 文集作者昵称 | |
+| image_url | str | 文集封面url | |
+| update_time | num | 更新时间 | 秒时间戳 |
+| ctime | num | 创建时间 | 秒时间戳 |
+| publish_time | num | 发布时间 | 秒时间戳 |
+| summary | str | 文集简介 | |
+| words | num | 文集字数 | |
+| read | num | 文集阅读量 | |
+| articles_count | num | 文章数量 | |
+| state | num | 0 | 作用尚不明确 |
\ No newline at end of file
From 945ab954cfa4eba4f82ad4a79a535306ce1c5a00 Mon Sep 17 00:00:00 2001
From: MineCreeper86 <61276297+MineCreeper86@users.noreply.github.com>
Date: Sat, 8 Aug 2020 17:38:26 +0800
Subject: [PATCH 5/8] =?UTF-8?q?=E8=82=9D=E6=8D=90=E7=8C=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
article/articles.md | 47 +++++++++++++++++++++++++++++++--------------
1 file changed, 33 insertions(+), 14 deletions(-)
diff --git a/article/articles.md b/article/articles.md
index b4ec200..70c2561 100644
--- a/article/articles.md
+++ b/article/articles.md
@@ -37,17 +37,36 @@
`data`中的`list`对象:
-| 字段 | 类型 | 内容 | 备注 |
-| -------------- | ---- | ------------ | ------------------------ |
-| id | num | 文集ID | |
-| mid | num | 文集作者UID | |
-| name | str | 文集作者昵称 | |
-| image_url | str | 文集封面url | |
-| update_time | num | 更新时间 | 秒时间戳 |
-| ctime | num | 创建时间 | 秒时间戳 |
-| publish_time | num | 发布时间 | 秒时间戳 |
-| summary | str | 文集简介 | |
-| words | num | 文集字数 | |
-| read | num | 文集阅读量 | |
-| articles_count | num | 文章数量 | |
-| state | num | 0 | 作用尚不明确 |
\ No newline at end of file
+| 字段 | 类型 | 内容 | 备注 |
+| -------------- | ---- | ------------ | ------------ |
+| id | num | 文集ID | |
+| mid | num | 文集作者UID | |
+| name | str | 文集作者昵称 | |
+| image_url | str | 文集封面url | |
+| update_time | num | 更新时间 | 秒时间戳 |
+| ctime | num | 创建时间 | 秒时间戳 |
+| publish_time | num | 发布时间 | 秒时间戳 |
+| summary | str | 文集简介 | |
+| words | num | 文集字数 | |
+| read | num | 文集阅读量 | |
+| articles_count | num | 文章数量 | |
+| state | num | 1或3 | 作用尚不明确 |
+| reason | str | 空 | 作用尚不明确 |
+| apply_time | str | 空 | 作用尚不明确 |
+| check_time | str | 空 | 作用尚不明确 |
+
+`data`中的`articles`数组:
+
+| 项 | 类型 | 内容 | 备注 |
+| ---- | ---- | ----------------- | ---- |
+| 0 | obj | 列表第1篇文章 | |
+| n | obj | 列表第(n+1)篇文章 | |
+
+`data`中的`articles`数组中的对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| ------------ | ---- | ------------ | ------------ |
+| id | num | 专栏cvID | |
+| title | str | 文章标题 | |
+| state | num | 0 | 作用尚不明确 |
+| publish_time | num | 发布时间 | 秒时间戳 |
\ No newline at end of file
From a77b56bea9ddfc7100a85b1d977f4a8cb97fbcae Mon Sep 17 00:00:00 2001
From: MineCreeper86 <61276297+MineCreeper86@users.noreply.github.com>
Date: Sat, 8 Aug 2020 18:03:40 +0800
Subject: [PATCH 6/8] =?UTF-8?q?=E8=BF=99=E6=AE=B5=E8=AF=B4=E6=98=AF?=
=?UTF-8?q?=E5=92=8Cinfo=E6=8C=BA=E5=83=8F=E7=9A=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
article/articles.md | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/article/articles.md b/article/articles.md
index 70c2561..42519db 100644
--- a/article/articles.md
+++ b/article/articles.md
@@ -64,9 +64,15 @@
`data`中的`articles`数组中的对象:
-| 字段 | 类型 | 内容 | 备注 |
-| ------------ | ---- | ------------ | ------------ |
-| id | num | 专栏cvID | |
-| title | str | 文章标题 | |
-| state | num | 0 | 作用尚不明确 |
-| publish_time | num | 发布时间 | 秒时间戳 |
\ No newline at end of file
+| 字段 | 类型 | 内容 | 备注 |
+| ------------ | ----- | -------------- | ------------ |
+| id | num | 专栏cvID | |
+| title | str | 文章标题 | |
+| state | num | 0 | 作用尚不明确 |
+| publish_time | num | 发布时间 | 秒时间戳 |
+| words | num | 文章字数 | |
+| image_urls | array | 文章封面 | |
+| category | obj | 文章标签 | |
+| categories | array | 文章标签列表 | |
+| summary | str | 文章摘要 | |
+| stats | obj | 文章状态数信息 | |
\ No newline at end of file
From 0ac874d5d871581b5a47252f23117d25af142c63 Mon Sep 17 00:00:00 2001
From: MineCreeper86 <61276297+MineCreeper86@users.noreply.github.com>
Date: Sat, 8 Aug 2020 21:33:03 +0800
Subject: [PATCH 7/8] =?UTF-8?q?=E5=88=9D=E7=A8=BF-=E9=87=8C=E7=A8=8B?=
=?UTF-8?q?=E7=A2=91=E7=9A=84=E7=AA=81=E7=A0=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
article/articles.md | 49 ++++++++++++++++++++++++++++++++++-----------
1 file changed, 37 insertions(+), 12 deletions(-)
diff --git a/article/articles.md b/article/articles.md
index 42519db..ea27a86 100644
--- a/article/articles.md
+++ b/article/articles.md
@@ -64,15 +64,40 @@
`data`中的`articles`数组中的对象:
-| 字段 | 类型 | 内容 | 备注 |
-| ------------ | ----- | -------------- | ------------ |
-| id | num | 专栏cvID | |
-| title | str | 文章标题 | |
-| state | num | 0 | 作用尚不明确 |
-| publish_time | num | 发布时间 | 秒时间戳 |
-| words | num | 文章字数 | |
-| image_urls | array | 文章封面 | |
-| category | obj | 文章标签 | |
-| categories | array | 文章标签列表 | |
-| summary | str | 文章摘要 | |
-| stats | obj | 文章状态数信息 | |
\ No newline at end of file
+| 字段 | 类型 | 内容 | 备注 |
+| ------------ | ----- | -------------- | ---------------------------------------------------------------- |
+| id | num | 专栏cvID | |
+| title | str | 文章标题 | |
+| state | num | 0 | 作用尚不明确 |
+| publish_time | num | 发布时间 | 秒时间戳 |
+| words | num | 文章字数 | |
+| image_urls | array | 文章封面 | |
+| category | obj | 文章标签 | |
+| categories | array | 文章标签列表 | |
+| summary | str | 文章摘要 | |
+| stats | obj | 文章状态数信息 | |
+| like_state | num | 是否点赞 | 0:未点赞
1:已点赞
需要登录(SESSDATA)
未登录为0 |
+
+`articles`数组中的对象中的`stats`:
+
+| 字段 | 类型 | 内容 | 备注 |
+| -------- | ---- | ---------- | ---- |
+| view | num | 阅读数 | |
+| favorite | num | 收藏数 | |
+| like | num | 点赞数 | |
+| dislike | num | 点踩数 | |
+| reply | num | 评论数 | |
+| share | num | 分享数 | |
+| coin | num | 投币数 | |
+| dynamic | num | 动态转发数 | |
+
+`articles`数组中的对象中的`author`:
+
+| 字段 | 类型 | 内容 | 备注 |
+| --------------- | ---- | -------------- | ---- |
+| mid | num | 作者UID | |
+| name | str | 作者昵称 | |
+| face | str | 作者头像url | |
+| official_verify | obj | 作者认证信息 | |
+| nameplate | obj | 作者勋章 | |
+| vip | obj | 作者大会员状态 | |
\ No newline at end of file
From aae653b5428387522c2692ff83c38bbd6ded093b Mon Sep 17 00:00:00 2001
From: MineCreeper86 <61276297+MineCreeper86@users.noreply.github.com>
Date: Sun, 16 Aug 2020 13:36:19 +0800
Subject: [PATCH 8/8] =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E4=BA=A4=E5=B7=A5?=
=?UTF-8?q?=E4=BA=86=EF=BC=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
article/articles.md | 208 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 205 insertions(+), 3 deletions(-)
diff --git a/article/articles.md b/article/articles.md
index ea27a86..62f4ce9 100644
--- a/article/articles.md
+++ b/article/articles.md
@@ -2,11 +2,11 @@
## 获取文集基本信息
-> https://api.bilibili.com/x/article/list/web/articles
+> http://api.bilibili.com/x/article/list/web/articles
*请求方式:GET*
-认证方式:我不确定,dalao你帮我写吧
+认证方式:Cookie(SESSDATA)
**url参数:**
@@ -100,4 +100,206 @@
| face | str | 作者头像url | |
| official_verify | obj | 作者认证信息 | |
| nameplate | obj | 作者勋章 | |
-| vip | obj | 作者大会员状态 | |
\ No newline at end of file
+| vip | obj | 作者大会员状态 | |
+
+**示例:**
+
+查询文集`rl207146`的基本信息
+
+```shell
+curl -G 'http://api.bilibili.com/x/article/list/web/articles'\
+--data-urlencode 'id=207146'\
+-b 'SESSDATA=xxx'
+```
+
+```json
+{
+ "code": 0,
+ "message": "0",
+ "ttl": 1,
+ "data": {
+ "list": {
+ "id": 207146,
+ "mid": 293793435,
+ "name": "B站api研究笔记",
+ "image_url": "https://i0.hdslb.com/bfs/article/96d2b3d2a72e6497a011c885ab9245c51507ce18.png",
+ "update_time": 1585036952,
+ "ctime": 1582718126,
+ "publish_time": 1585045493,
+ "summary": "",
+ "words": 8697,
+ "read": 1654,
+ "articles_count": 3,
+ "state": 1,
+ "reason": "",
+ "apply_time": "",
+ "check_time": ""
+ },
+ "articles": [
+ {
+ "id": 4815593,
+ "title": "【B站API】api研究笔记ep1-视频基本信息",
+ "state": 0,
+ "publish_time": 1582643908,
+ "words": 2906,
+ "image_urls": [
+ "https://i0.hdslb.com/bfs/article/00497c8df7130f22e5b953694b8931a22d32f133.jpg"
+ ],
+ "category": {
+ "id": 26,
+ "parent_id": 17,
+ "name": "数码"
+ },
+ "categories": [
+ {
+ "id": 17,
+ "parent_id": 0,
+ "name": "科技"
+ },
+ {
+ "id": 26,
+ "parent_id": 17,
+ "name": "数码"
+ }
+ ],
+ "summary": "各位小可爱们大家好啊,终于可以结束我长达一年的咕咕了.........在这蝠想联翩的日子里也闲的没事,除了上课就是睡觉,还不如搞点事情哪个猿不想拥有自己的B站爬虫呢(误),当然自制一个B站的综合信息台也是可以的,比如显示粉丝数 获赞数(掉粉警告)于是就萌生了这个研究B站api的想法,以后也会继续不定期分享我的主体思路是利用Chrome中的F12工具进行分析,再用curl进行验证先从视频下手吧qwq我们以av2075941为例network检测下,有各种图片、视频、网页、js。。。。。的传输记录",
+ "stats": {
+ "view": 578,
+ "favorite": 19,
+ "like": 26,
+ "dislike": 0,
+ "reply": 19,
+ "share": 6,
+ "coin": 10,
+ "dynamic": 0
+ },
+ "like_state": 0
+ },
+ {
+ "id": 4820548,
+ "title": "【B站API】api研究笔记ep2-视频其他信息",
+ "state": 0,
+ "publish_time": 1582688189,
+ "words": 4319,
+ "image_urls": [
+ "https://i0.hdslb.com/bfs/article/2416ee72759a5c2c8bba0f10d42e789fc0c0ae2b.jpg"
+ ],
+ "category": {
+ "id": 26,
+ "parent_id": 17,
+ "name": "数码"
+ },
+ "categories": [
+ {
+ "id": 17,
+ "parent_id": 0,
+ "name": "科技"
+ },
+ {
+ "id": 26,
+ "parent_id": 17,
+ "name": "数码"
+ }
+ ],
+ "summary": "大家中午好鸭昨天我们研究了B站api的获取方法和使用方法 这一期我们继续分享另一个从网页中寻找api的方法以及研究视频的其他api接口以av170001为例首先打开视频,在F12的network下的监控中加载页面筛选XHR对象用搜索法的效率较低,不如我们直接进行筛选&观察通过对资源路径的观察可以猜到某些有关的项比如playurl有可能是播放的地址,pagelist可能是分P列表,view不就是昨天研究的『视频基本信息』吗通过继续分析我总结出了以下api这个可以在只想获取简介时应用,而不用处理多余",
+ "stats": {
+ "view": 737,
+ "favorite": 14,
+ "like": 18,
+ "dislike": 0,
+ "reply": 14,
+ "share": 1,
+ "coin": 1,
+ "dynamic": 0
+ },
+ "like_state": 0
+ },
+ {
+ "id": 5263184,
+ "title": "【B站API】api研究笔记Special-AV与BV互转",
+ "state": 0,
+ "publish_time": 1585045493,
+ "words": 1472,
+ "image_urls": [
+ "https://i0.hdslb.com/bfs/article/b520939046899303cfcac1511308eb87ede760d7.jpg"
+ ],
+ "category": {
+ "id": 26,
+ "parent_id": 17,
+ "name": "数码"
+ },
+ "categories": [
+ {
+ "id": 17,
+ "parent_id": 0,
+ "name": "科技"
+ },
+ {
+ "id": 26,
+ "parent_id": 17,
+ "name": "数码"
+ }
+ ],
+ "summary": "昨天视频新编号BV上线了,所有视频的编号默认都变成了BVxxx,不再是avxxx,兼容在链接和搜索中输入av号,评论区和动态av和bv都可以一键传送显然日益增长的投稿量对于编号是个问题,int是有上限的,但一串“乱码”缺少了灵魂,还会让我们想到磁力链接或者熊掌盘的链接(手动狗头)看到av170001,我会想到“法克儿~~”,但看到BV17x411w7KC,我?????其实av号并没有消失,只不过它已经隐藏于大众的视野里了,av和bv本质上是可以双向转换的方法一(电脑版推荐):打开一个视频,会发现",
+ "stats": {
+ "view": 343,
+ "favorite": 9,
+ "like": 13,
+ "dislike": 0,
+ "reply": 9,
+ "share": 0,
+ "coin": 2,
+ "dynamic": 0
+ },
+ "like_state": 0
+ }
+ ],
+ "author": {
+ "mid": 293793435,
+ "name": "社会易姐QwQ",
+ "face": "http://i1.hdslb.com/bfs/face/aebb2639a0d47f2ce1fec0631f412eaf53d4a0be.jpg",
+ "pendant": {
+ "pid": 0,
+ "name": "",
+ "image": "",
+ "expire": 0
+ },
+ "official_verify": {
+ "type": -1,
+ "desc": ""
+ },
+ "nameplate": {
+ "nid": 4,
+ "name": "青铜殿堂",
+ "image": "http://i1.hdslb.com/bfs/face/2879cd5fb8518f7c6da75887994c1b2a7fe670bd.png",
+ "image_small": "http://i1.hdslb.com/bfs/face/6707c120e00a3445933308fd9b7bd9fad99e9ec4.png",
+ "level": "普通勋章",
+ "condition": "单个自制视频总播放数>=1万"
+ },
+ "vip": {
+ "type": 2,
+ "status": 1,
+ "due_date": 0,
+ "vip_pay_type": 0,
+ "theme_type": 0,
+ "label": null
+ }
+ },
+ "last": {
+ "id": 0,
+ "title": "",
+ "state": 0,
+ "publish_time": 0,
+ "words": 0,
+ "image_urls": [ ],
+ "category": {
+ "id": 0,
+ "parent_id": 0,
+ "name": ""
+ },
+ "categories": [ ],
+ "summary": ""
+ },
+ "attention": true
+ }
+}
\ No newline at end of file