Closed oovm closed 6 years ago
老404娘, 很久以前查过, 也下过, 然后现在接口换掉了我还真找不到...
还是从时光机开始找线索
啊, 找到了 http://static.hdslb.com/error/404.png
吼吼吼吼, 我上去就是一顿壁咚
ddos=StringJoin/@Tuples[ToString/@Range[0,9],3];
urls="http://static.hdslb.com/error/"<>#<>".png"&/@ddos;
ParallelMap[If[URLRead[#,"StatusCode"]==404,Nothing,#]&,urls]
应该只有如下返回值:
{
"http://static.hdslb.com/error/276.png",
"http://static.hdslb.com/error/400.png",
"http://static.hdslb.com/error/403.png",
"http://static.hdslb.com/error/404.png",
"http://static.hdslb.com/error/444.png",
"http://static.hdslb.com/error/500.png",
"http://static.hdslb.com/error/502.png",
"http://static.hdslb.com/error/503.png",
"http://static.hdslb.com/error/504.png"
}
现在的404四格漫画, 这个简单, 抓个包的事..
点换一张, 发现调用了 ttps://static.hdslb.com/error/dist/error.js
r.ajax({
url: "//www.bilibili.com/activity/web/view/data/31",
type: "get",
dataType: "json",
async: false,
timeout: 3e3,
success: function(r) {
var o = r.data && r.data.list;
for (var e in o) {
a.push((o[e].data && o[e].data.img).replace(/^http:/, ""))
}
t = true
}
});
摆明了这个接口就是 www.bilibili.com/activity/web/view/data/31
当然里面还有一些别的东西:
{
"https://activity.hdslb.com/zzjs/cartoon/errorPage-manga-1.png",
"https://activity.hdslb.com/zzjs/cartoon/errorPage-manga-2.png",
"https://activity.hdslb.com/zzjs/cartoon/errorPage-manga-3.png",
"https://activity.hdslb.com/zzjs/cartoon/errorPage-manga-4.png",
"https://activity.hdslb.com/zzjs/cartoon/errorPage-manga-5.png",
"https://activity.hdslb.com/zzjs/cartoon/errorPage-manga-6.png",
"https://activity.hdslb.com/zzjs/cartoon/errorPage-manga-7.png"
"https://static.hdslb.com/images/error/no_video_login.png",
"https://static.hdslb.com/images/error/wait_for_review.png",
"https://static.hdslb.com/images/error/wait_for_release.png",
"https://static.hdslb.com/images/error/no_video.png",
"https://static.hdslb.com/images/error/video_conflict.png"
}
当然你一直刷的话会有很好玩的东西, 会弹出个框
f++;
if (f == 100) {
(new MessageBox).show(r(this), "别刷了,其实一共就" + (a.length + 1) + "张(笑)", 3e3)
} else if (f == 200) {
(new MessageBox).show(r(this), "好吧骗你的,其实一共就" + a.length + "张(笑)", 3e3)
}
这里这个GIF图也有接口
当然一般访问时是二级触发, 只会返回之一
https://api.bilibili.com/x/web-interface/index/icon
但是我们可以看
https://s1.hdslb.com/bfs/static/jinkela/home/home.js
从里面找到一级接口:
https://www.bilibili.com/index/index-icon.json
当然还有个默认返回值:
http://i0.hdslb.com/bfs/static/151fa668c8f083a8ed3f7a2be2ffcc652c8f0b1f.gif
当然这个不管也无所谓, 总列表里也有这个值.
返回包括两部分 fix 和random list fix就是所有的动图, random 不明
这个默认搜索关键词, 一定时间内是固定的, 相当于某种热推吧