From ef6530059a9a1ed9fe8de42d5e0bc569a478ac01 Mon Sep 17 00:00:00 2001 From: qiwihui Date: Sun, 19 May 2019 17:16:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=A4=9A=E6=8A=93?= =?UTF-8?q?=E9=B1=BC=E6=90=9C=E7=B4=A2=E7=BD=91=E9=A1=B5=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=20#2162=20(#2168)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/routes/duozhuayu/search.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/routes/duozhuayu/search.js b/lib/routes/duozhuayu/search.js index 1ca7c1ac0..0a1b3dd14 100644 --- a/lib/routes/duozhuayu/search.js +++ b/lib/routes/duozhuayu/search.js @@ -12,9 +12,7 @@ module.exports = async (ctx, next) => { const html = await page.evaluate(() => document.querySelector('html').innerHTML); browser.close(); const $ = cheerio.load(html); - const books = $('.Search-section') - .eq(1) - .find('.SearchBookItem'); + const books = $('.result-list').find('.SearchBookItem'); const item = books .map((index, i) => { const book = $(i);