Comments (1)
现在允许通过变量直接引用视频信息API所返回的数据。
视频JSON差不多长这样:
view?aid=976673772
{
"code":0,
"message":"0",
"ttl":1,
"data":{
"bvid":"BV1Z44y1e7NV",
"aid":976673772,
"videos":1,
"tid":22,
"tname":"鬼畜调教",
"copyright":1,
"pic":"http://i1.hdslb.com/bfs/archive/c44bcd18964b5ba49354e7fe18ba970e1f3dfeb7.jpg",
"title":"【郭德纲】看法宝看法宝",
"pubdate":1637147715,
"ctime":1637147715,
"desc":"",
"desc_v2":null,
"state":0,
"duration":111,
"rights":{
"bp":0,
"elec":0,
"download":1,
"movie":0,
"pay":0,
"hd5":0,
"no_reprint":1,
"autoplay":1,
"ugc_pay":0,
"is_cooperation":0,
"ugc_pay_preview":0,
"no_background":0,
"clean_mode":0,
"is_stein_gate":0,
"is_360":0,
"no_share":0
},
"owner":{
"mid":3294808,
"name":"耿鬼老师",
"face":"http://i1.hdslb.com/bfs/face/7ecbdc4464508577ce7ad1f858dfaea8b4973fa0.jpg"
},
"stat":{
"aid":976673772,
"view":55215,
"danmaku":92,
"reply":240,
"favorite":1201,
"coin":1729,
"share":305,
"now_rank":0,
"his_rank":0,
"like":4330,
"dislike":0,
"evaluation":"",
"argue_msg":""
},
"dynamic":"",
"cid":444609808,
"dimension":{
"width":1920,
"height":1080,
"rotate":0
},
"no_cache":false,
"pages":[
{
"cid":444609808,
"page":1,
"from":"vupload",
"part":"看法宝看法宝PV_x264",
"duration":111,
"vid":"",
"weblink":"",
"dimension":{
"width":1920,
"height":1080,
"rotate":0
},
"first_frame":"http://i1.hdslb.com/bfs/storyff/n211118a227j0xkglemqbbk9qognvc2e_firsti.jpg"
}
],
"subtitle":{
"allow_submit":false,
"list":[
]
},
"user_garb":{
"url_image_ani_cut":""
},
"honor_reply":{
}
}
}
可以在页面加载时按F12
然后切换到Network/网络
标签页,可以从中找到view?aid=xxx
或view?bvid=xxx
的项目,点击预览即可。
其中data
下的任意内容都可以直接作为变量引用。
如:
json.data.tname
=>%tname%
json.data.owner.mid
=>%owner.mid%
这可能导致部分数据和已有部分变量重复,但是不会移除任何已有变量。
这个介绍稍后会贴到脚本介绍中。
from userjs.
Related Issues (20)
- [IDEA] ShowAV脚本显示功能请求 HOT 1
- showid: 排名间隔bug
- showid: 间隔样式实现重构
- showid: 高级复制里 av 号的「av」不见了。
- showid:视频 AV 号和高级复制 和 视频 BV 号和高级复制 组件的点击复制都失效了。
- showid: 适配HEVC格式的播放器(无法捕获自动跳P) HOT 1
- [rotate] 转为通用脚本
- [关注管理器] feat: 取关间隔
- [关注管理器] impr: 重构 HOT 1
- 兼容新版本播放器
- [IDEA] [关注管理器] 按照最后投稿时间排序或筛选 HOT 2
- [FoMan] 新版筛选功能 HOT 1
- [Bug] ShowAV: 新版本信息条适配/无法隐藏投稿时间 HOT 2
- [Bug] ShowAV脚本 HOT 6
- [IDEA] ShowAV脚本显示警告 HOT 1
- [IDEA] 按粉丝数量和最近投稿时间排序 HOT 13
- [Bug] 分组数据获取失败 HOT 5
- [Bug] 基于浏览器判定载入点的脚本在 3.x 版本播放器上失效 HOT 3
- [SNI] 番剧区禁用视频内显
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from userjs.