style: auto format
This commit is contained in:
parent
6fdd85e0fe
commit
5f157b02a1
|
|
@ -15,14 +15,14 @@ module.exports = {
|
|||
await got(`https://space.bilibili.com/${uid}/`, {
|
||||
headers: {
|
||||
Referer: 'https://www.bilibili.com/',
|
||||
Cookie: cookie
|
||||
}
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
const {data: nameResponse} = await got(`https://api.bilibili.com/x/space/acc/info?mid=${uid}&token=&platform=web&jsonp=jsonp`, {
|
||||
const { data: nameResponse } = await got(`https://api.bilibili.com/x/space/acc/info?mid=${uid}&token=&platform=web&jsonp=jsonp`, {
|
||||
headers: {
|
||||
Referer: `https://space.bilibili.com/${uid}/`,
|
||||
Cookie: cookie
|
||||
}
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
return nameResponse.data.name;
|
||||
});
|
||||
|
|
@ -37,14 +37,14 @@ module.exports = {
|
|||
await got(`https://space.bilibili.com/${uid}/`, {
|
||||
headers: {
|
||||
Referer: `https://www.bilibili.com/`,
|
||||
Cookie: cookie
|
||||
}
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
const {data: nameResponse} = await got(`https://api.bilibili.com/x/space/acc/info?mid=${uid}&token=&platform=web&jsonp=jsonp`, {
|
||||
const { data: nameResponse } = await got(`https://api.bilibili.com/x/space/acc/info?mid=${uid}&token=&platform=web&jsonp=jsonp`, {
|
||||
headers: {
|
||||
Referer: `https://space.bilibili.com/${uid}/`,
|
||||
Cookie: cookie
|
||||
}
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
name = nameResponse.data.name;
|
||||
face = nameResponse.data.face;
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@ module.exports = async (ctx) => {
|
|||
await got(`https://space.bilibili.com/${uid}/video?tid=0&page=1&keyword=&order=pubdate`, {
|
||||
headers: {
|
||||
Referer: `https://space.bilibili.com/${uid}/`,
|
||||
Cookie: cookie
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
const response = await got(`https://api.bilibili.com/x/space/arc/search?mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&jsonp=jsonp`, {
|
||||
headers: {
|
||||
Referer: `https://space.bilibili.com/${uid}/video?tid=0&page=1&keyword=&order=pubdate`,
|
||||
Cookie: cookie
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
@ -29,13 +29,13 @@ module.exports = async (ctx) => {
|
|||
await got(`https://space.bilibili.com/${uid}/video?tid=0&page=${pageId}&keyword=&order=pubdate`, {
|
||||
headers: {
|
||||
Referer: `https://space.bilibili.com/${uid}/`,
|
||||
Cookie: cookie
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
return await got(`https://api.bilibili.com/x/space/arc/search?mid=${uid}&ps=30&tid=0&pn=${pageId}&keyword=&order=pubdate&jsonp=jsonp`, {
|
||||
headers: {
|
||||
Referer: `https://space.bilibili.com/${uid}/video?tid=0&page=${pageId}&keyword=&order=pubdate`,
|
||||
Cookie: cookie
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@ module.exports = async (ctx) => {
|
|||
await got(`https://space.bilibili.com/${uid}/video?tid=0&page=1&keyword=&order=pubdate`, {
|
||||
headers: {
|
||||
Referer: `https://space.bilibili.com/${uid}/`,
|
||||
Cookie: cookie
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
const response = await got(`https://api.bilibili.com/x/space/arc/search?mid=${uid}&ps=30&tid=0&pn=1&keyword=&order=pubdate&jsonp=jsonp`, {
|
||||
headers: {
|
||||
Referer: `https://space.bilibili.com/${uid}/video?tid=0&page=1&keyword=&order=pubdate`,
|
||||
Cookie: cookie
|
||||
Cookie: cookie,
|
||||
},
|
||||
});
|
||||
const data = response.data;
|
||||
|
|
|
|||
Loading…
Reference in New Issue