@@ -10,7 +10,7 @@ module.exports = async (ctx) => {
|
||||
const res = await got.get(url);
|
||||
const $ = cheerio.load(res.data);
|
||||
const title = $('head > title').text();
|
||||
const list = $('.u-newsList01.f-mt10 li').get();
|
||||
const list = $('.txtList_01 li').get();
|
||||
|
||||
const out = await Promise.all(
|
||||
list.map(async (item) => {
|
||||
@@ -40,7 +40,7 @@ module.exports = async (ctx) => {
|
||||
const single = {
|
||||
title,
|
||||
link: itemUrl,
|
||||
description: $d('.artCon').html() || $d('.textlive').html(),
|
||||
description: $d('.art-con').html() || $d('.textlive').html(),
|
||||
};
|
||||
ctx.cache.set(itemUrl, JSON.stringify(single));
|
||||
return Promise.resolve(single);
|
||||
|
||||
Reference in New Issue
Block a user