diff --git a/lib/routes/houxu/lives.js b/lib/routes/houxu/lives.js index acfa2ef02f..247c96af79 100644 --- a/lib/routes/houxu/lives.js +++ b/lib/routes/houxu/lives.js @@ -7,34 +7,22 @@ module.exports = async (ctx) => { const res = await axios.get(baseUrl); const $ = cheerio.load(res.data); - const list = $('div.list > div'); + const list = $('div.container > div'); const out = list .map((_, el) => { const each = $(el); + + const p = each.find('p'); return { - title: - each - .find('cite') - .text() - .trim() + - ' | ' + - each - .find('a') - .first() - .text() - .trim(), - description: each - .find('p > a') - .contents() - .filter(function() { - return this.nodeType === 3; - }) + title: each + .find('h3') .text() .trim(), + description: p.html() + p.next().html(), link: 'https://houxu.app' + each - .find('a') + .find('h3 > a') .first() .attr('href'), };