mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 02:58:08 +08:00
feat: add b站用户动态up视频投稿 (#2088)
* feat: add b站用户关注的所有up主的最新投稿 * feat: 使用cookie获取动态数据 * fix some problem * change router
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
const bilibili_cookies = {};
|
||||
const envs = process.env;
|
||||
for (const name in envs) {
|
||||
if (name.startsWith('BILIBILI_COOKIE_')) {
|
||||
const uid = name.slice(16);
|
||||
bilibili_cookies[uid] = envs[name];
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
connect: {
|
||||
port: process.env.PORT || 1200, // 监听端口
|
||||
@@ -52,6 +61,10 @@ module.exports = {
|
||||
name: process.env.HTTP_BASIC_AUTH_NAME || 'usernam3',
|
||||
pass: process.env.HTTP_BASIC_AUTH_PASS || 'passw0rd',
|
||||
},
|
||||
bilibili: {
|
||||
cookies: bilibili_cookies,
|
||||
},
|
||||
|
||||
puppeteerWSEndpoint: process.env.PUPPETEER_WS_ENDPOINT,
|
||||
loggerLevel: process.env.LOGGER_LEVEL || 'info',
|
||||
proxy: {
|
||||
|
||||
Reference in New Issue
Block a user