mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-12 08:10:32 +08:00
feat: nhc list_gzbd
This commit is contained in:
@@ -8,7 +8,7 @@ module.exports = async (ctx) => {
|
|||||||
const $ = cheerio.load(res.data);
|
const $ = cheerio.load(res.data);
|
||||||
const list = $('.zxxx_list a').get();
|
const list = $('.zxxx_list a').get();
|
||||||
const out = await Promise.all(
|
const out = await Promise.all(
|
||||||
list.map(async (item) => {
|
list.splice(0, 10).map(async (item) => {
|
||||||
const $ = cheerio.load(item);
|
const $ = cheerio.load(item);
|
||||||
const title = $(item).text();
|
const title = $(item).text();
|
||||||
const address = $(item).attr('href');
|
const address = $(item).attr('href');
|
||||||
@@ -28,7 +28,7 @@ module.exports = async (ctx) => {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
ctx.state.data = {
|
ctx.state.data = {
|
||||||
title: '疫情通报',
|
title: '疫情通报-国家卫健委',
|
||||||
link: url,
|
link: url,
|
||||||
item: out,
|
item: out,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user