From 08c0943d9ce180456f9ce3be515e2674718aa7fc Mon Sep 17 00:00:00 2001 From: Cloud Date: Wed, 11 Sep 2019 14:21:08 +0800 Subject: [PATCH] fix: zaker (#3042) --- lib/routes/zaker/source.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/routes/zaker/source.js b/lib/routes/zaker/source.js index ca34981a8..795af4236 100644 --- a/lib/routes/zaker/source.js +++ b/lib/routes/zaker/source.js @@ -9,17 +9,17 @@ module.exports = async (ctx) => { const response = await got.get(link); const $ = cheerio.load(response.data); - const title = $('a.nav_item_active').text(); + const title = $('.main-title').text(); - const list = $('div.figure.flex-block') + const list = $('div.content-block') .slice(0, 10) .map(function() { const info = { title: $(this) - .find('h2 a') - .attr('title'), + .find('.article-title') + .text(), link: $(this) - .find('h2 a') + .find('.article-wrap > a') .attr('href'), }; return info;