From ab9a601ec6a6ae2568261e8684bc9e6ba99f9458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E6=98=93=E5=A7=90QwQ?= <45892418+SocialSisterYi@users.noreply.github.com> Date: Sat, 25 Apr 2020 17:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BE=E7=89=87=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E7=9B=B8=E5=85=B3=E5=8F=82=E6=95=B0=20=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BD=AE=E9=A1=B6=E8=A7=86=E9=A2=91=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- other/picture.md | 44 +++++++++++++++++++++++++++ user/space.md | 77 +++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 121 insertions(+), 2 deletions(-) create mode 100644 other/picture.md diff --git a/README.md b/README.md index dc5570a..ee59072 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ 计划整理分类&目录:(√代表已完成,x代表正在施工...) - cookie -- 图片格式化 +- [图片格式化](other/picture.md) - [登录](login) - [二维码登录](login/QR.md)√ - 密码&短信登录 diff --git a/other/picture.md b/other/picture.md new file mode 100644 index 0000000..dcbb835 --- /dev/null +++ b/other/picture.md @@ -0,0 +1,44 @@ +# 图片格式化 + +对于\*.hdslb.com/bfs下的图片文件都可以使用以下格式化参数 + +> \*.hdslb.com/bfs/\*/\*.\[jpg/png/gif\]@{width}w\_{high}h\_{quality}q.{format} + +| 可选参数 | 含义 | 备注 | +| -------- | ---------------- | ---------------- | +| width | 图片最大限制宽度 | | +| high | 图片最大限制高度 | | +| quality | 图片质量百分比 | 仅限webp | +| format | 图片格式 | 仅限png/jpg/webp | + +**示例:** + +原始图片 + +http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg + +![](http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg) + +高度限制为100 + +http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg@100h + +![](http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg@100h) + +宽度限制为100 + +http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg@100w + +![](http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg@100w) + +转换格式为webp + +http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg@.webp + +![](http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg@.webp) + +转换为webp图片质量为1% + +http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg@1q.webp + +![](http://i1.hdslb.com/bfs/archive/e5fff1472bad1c0c6bcb3004205f9be23b58ffc0.jpg@1q.webp) \ No newline at end of file diff --git a/user/space.md b/user/space.md index 03c415e..b8226ec 100644 --- a/user/space.md +++ b/user/space.md @@ -31,6 +31,81 @@ 基本同「[视频详细信息](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/video/info.md#视频详细信息(avID/bvID互转))」中的data对象 +| 字段 | 类型 | 内容 | 备注 | +| ----------- | ---- | ------------------------------ | ----------------------- | +| aid | num | 视频avID | | +| videos | num | 视频分P总数 | 默认为1 | +| tid | num | 分区ID | | +| tname | str | 子分区名称 | | +| copyright | num | 版权标志 | 1:自制
2:转载 | +| pic | str | 视频封面图片url | | +| title | str | 视频标题 | | +| pubdate | num | 视频上传时间 | 时间戳 | +| ctime | num | 视频审核通过时间 | 时间戳 | +| desc | str | 视频简介 | | +| state | num | 0 | 作用尚不明确 | +| attribute | num | | 作用尚不明确 | +| duration | num | 视频总计持续时长(所有分P) | 单位为秒 | +| rights | obj | 视频属性标志 | | +| owner | obj | 视频UP主信息 | | +| stat | obj | 视频状态数 | | +| dynamic | str | 视频同步发布的的动态的文字内容 | 无为空 | +| cid | num | 视频1P CID | | +| dimension | obj | 视频1P分辨率 | | +| bvid | str | 视频bvID | | +| reason | str | 置顶视频备注 | | +| inter_video | bool | 是否为合作视频 | false:否
ture:是 | + +`data`中的`rights`对象: + +| 字段 | 类型 | 内容 | 备注 | +| --------------- | ---- | ---------------- | ---------------------------------------- | +| bp | num | 0 | 作用尚不明确 | +| elec | num | 0 | 作用尚不明确 | +| download | num | 允许下载标志 | 0:不允许
1:允许 | +| movie | num | 视频时电影标志 | 0:否
1:是 | +| pay | num | 仅会员可观看标志 | 0:无
1:有 | +| hd5 | num | 有高码率标志 | 0:无
1:有 | +| no_reprint | num | 禁止转载标志 | 0:无
1:禁止 | +| autoplay | num | 可自动播放标志 | 0:无
1:有 区别影视番剧与普通视频 | +| ugc_pay | num | 0 | 作用尚不明确 | +| is_cooperation | num | 视频合作标志 | 0:无
1:是 | +| ugc_pay_preview | num | 0 | 作用尚不明确 | +| no_background | num | 0 | 作用尚不明确 | + +`data`中的`owner`对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | -------- | ---- | +| mid | num | UP主UID | | +| name | str | UP主昵称 | | +| face | str | UP主头像 | | + +`data`中的`stat`对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---------- | ---- | ------------------------------ | ------------ | +| aid | num | 视频avID | | +| view | num | 普通:观看次数
屏蔽时:-1 | | +| danmaku | num | 弹幕条数 | | +| reply | num | 评论条数 | | +| favorite | num | 收藏人数 | | +| coin | num | 投币枚数 | | +| share | num | 分享次数 | | +| now_rank | num | 0 | 作用尚不明确 | +| his_rank | num | 历史最高排行 | | +| like | num | 获赞次数 | | +| dislike | num | 0 | 作用尚不明确 | +| evaluation | str | 视频评分 | 默认为空 | + +同`data`中的`dimension`对象 + +| 字段 | 类型 | 内容 | 备注 | +| ------ | ---- | ------------ | ------------ | +| width | num | 当前分P 宽度 | 可能为0 | +| height | num | 当前分P 高度 | 可能为0 | +| rotate | num | 0 | 作用尚不明确 | + **示例:** 查询用户`UID=23215368`的置顶视频 @@ -141,7 +216,7 @@ http://api.bilibili.com/x/space/top/arc?vmid=23215368 `data`数组中的对象: -基本同「[视频详细信息](https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/video/info.md#视频详细信息(avID/bvID互转))」中的data对象 +同查询用户置顶视频中的`data`对象 **示例:**