diff --git a/lib/routes/houxu/lives.js b/lib/routes/houxu/lives.js index 247c96af7..f8ca88394 100644 --- a/lib/routes/houxu/lives.js +++ b/lib/routes/houxu/lives.js @@ -7,24 +7,17 @@ module.exports = async (ctx) => { const res = await axios.get(baseUrl); const $ = cheerio.load(res.data); - const list = $('div.container > div'); + const list = $('div.live-realtime'); const out = list .map((_, el) => { const each = $(el); - const p = each.find('p'); return { title: each - .find('h3') + .find('h4 > a') .text() .trim(), - description: p.html() + p.next().html(), - link: - 'https://houxu.app' + - each - .find('h3 > a') - .first() - .attr('href'), + link: 'https://houxu.app' + each.find('h4 > a').attr('href'), }; }) .get();