-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapi.py
77 lines (64 loc) · 1.61 KB
/
api.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
"""用户主目录URL
URL = https://space.bilibili.com/10047741/
GET
headers
Host: space.bilibili.com
Referer: https://www.bilibili.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
"""
"""用户订阅标签api
URL = https://space.bilibili.com/ajax/tags/getSubList?mid=10047741
GET
Parameters
mid:10047741(用户ID)
"""
"""用户投稿api
URL = https://space.bilibili.com/ajax/member/getSubmitVideos?mid=10047741&page=1&pagesize=25
GET
Parameters
mid:10047741
page:1
pagesize:25
"""
"""用户个人信息api
URL = https://api.bilibili.com/x/space/acc/info?mid=10047741
GET
Parameters
mid:10047741
"""
"""获取myinfo关注数量粉丝数量api
URL = https://api.bilibili.com/x/space/myinfo?jsonp=jsonp
GET
Parameters
jsonp: jsonp
callback: __jp0
"""
"""用户个人粉丝关注数量api
URL = https://api.bilibili.com/x/relation/followers?vmid=10047741&pn=1&ps=20&order=desc&jsonp=jsonp
GET
Parameters
jsonp:jsonp
#callback: __jp0 (加上无法打开网页)
"""
"""获取用户所有关注api
URL = https://api.bilibili.com/x/relation/followings?vmid=10047741&pn=1&ps=20&order=desc&jsonp=jsonp
GET
Parameters
vmid: 10047741
pn: 1
ps: 20
order: desc
jsonp: jsonp
#callback: __jp7 (加上无法打开网页)
"""
"""获取用户所有粉丝api
URL = https://api.bilibili.com/x/relation/followers?vmid=10047741&pn=1&ps=20&order=desc&jsonp=jsonp
GET
Parameters
vmid: 10047741
pn: 1
ps: 20
order: desc
jsonp: jsonp
#callback: __jp10 (加上无法打开网页)
"""