Contributing to Open Source at Apple
apollozhu / bilibilikit Goto Github PK
View Code? Open in Web Editor NEWbilibili APIs in Swift. docs:
Home Page: https://apollozhu.github.io/BilibiliKit/
License: MIT License
bilibili APIs in Swift. docs:
Home Page: https://apollozhu.github.io/BilibiliKit/
License: MIT License
Contributing to Open Source at Apple
Don't want to write so much code right now :P
Old AV {info, page list} API still works, however, all URLs defaults to BV now
https://api.bilibili.com/x/web-interface/view?bvid=BV1XJ41157tQ
https://api.bilibili.com/x/web-interface/view?aid=82054919
{
"code": 0,
"message": "0",
"ttl": 1,
"data": {
"bvid": "BV1XJ41157tQ",
"aid": 82054919,
"videos": 1,
"tid": 21,
"tname": "日常",
"copyright": 1,
"pic": "http://i1.hdslb.com/bfs/archive/fa125f2f74f19ccde76aaebb9c310bee81a7086b.jpg",
"title": "看完这个视频的人,2020都变得更好了",
"pubdate": 1578136510,
"ctime": 1578136510,
"desc": "【打卡挑战年度视频】哪有什么天生如此,只是我们天天坚持。\n感谢2019年在B站坚持打卡的你们,希望在新的一年,大家变得更好!\n本视频参演UP主:\n是落拓呀\n三坨土本土\n张子贺Zake\n陈耐时很奶思\n翼飞书画\nBGM:\nPaRaD1SE - 桜流し - EVA Q [piano]\nカワキヲアメク(内心的嘶吼)- 美波(Minami)\nA Thousand Years - Christina Perri",
"state": 0,
"attribute": 16768,
"duration": 248,
"rights": {
"bp": 0,
"elec": 0,
"download": 1,
"movie": 0,
"pay": 0,
"hd5": 1,
"no_reprint": 1,
"autoplay": 1,
"ugc_pay": 0,
"is_cooperation": 0,
"ugc_pay_preview": 0,
"no_background": 0
},
"owner": {
"mid": 37090048,
"name": "哔哩哔哩创作中心",
"face": "http://i2.hdslb.com/bfs/face/01365904ffb64d1858da7e20e1040b9f2d94165d.jpg"
},
"stat": {
"aid": 82054919,
"view": 219918,
"danmaku": 4509,
"reply": 996,
"favorite": 8790,
"coin": 8587,
"share": 3259,
"now_rank": 0,
"his_rank": 82,
"like": 23728,
"dislike": 0,
"evaluation": ""
},
"dynamic": "#VLOG##生活记录##打卡挑战#",
"cid": 140393526,
"dimension": {
"width": 1920,
"height": 1080,
"rotate": 0
},
"no_cache": false,
"pages": [{
"cid": 140393526,
"page": 1,
"from": "vupload",
"part": "打卡挑战年度视频",
"duration": 248,
"vid": "",
"weblink": "",
"dimension": {
"width": 1920,
"height": 1080,
"rotate": 0
}
}],
"subtitle": {
"allow_submit": false,
"list": []
}
}
}
Collection
https://www.bilibili.com/audio/am79409?type=2
Collection info
https://www.bilibili.com/audio/music-service-c/web/menu/info?sid=79409
Collection content:
https://www.bilibili.com/audio/music-service-c/web/song/of-menu?sid=79409&pn=1&ps=100
Whatever
Author Popular Songs
https://www.bilibili.com/audio/music-service-c/web/song/upper-hit?uid=1887958&pn=1&ps=6
Related
https://www.bilibili.com/audio/music-service-c/web/menu/song-contain?sid=418827&pn=1&ps=6
Lyrics
https://www.bilibili.com/audio/music-service-c/web/song/lyric?sid=418827
热门歌单:
https://www.bilibili.com/audio/music-service-c/web/menu/hit?pn=1&ps=6
热门榜单:
https://www.bilibili.com/audio/music-service-c/web/menu/rank?pn=1&ps=6
For example, use async/await to get subtitles
BKSession+QRCodeLoginHelper.swift:81:43 Closure captures 'process' before it is declared
Things to be aware of:
BKSession
import
and extension
BilibiliKit/Sources/BKSec.swift
Lines 16 to 42 in f2300b9
As demonstrated in the documentation, we should
String(describing:)
https://api.bilibili.com/x/space/navnum?mid=14767902
Map to live room. Not valid JSON: https://api.live.bilibili.com/bili/getRoomInfo/14767902
https://api.bilibili.com/x/space/album/index?mid=14767902&ps=10
https://api.bilibili.com/x/v2/fav/folder?vmid=14767902
All of a user: https://api.bilibili.com/x/space/article?mid=14767902
High Resolution Cover Image: https://space.bilibili.com/ajax/settings/getSettings?mid=2
Not sure about RSA...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.