fix: 修正多抓鱼搜索网页解析 #2162 (#2168)

This commit is contained in:
qiwihui 2019-05-19 17:16:15 +08:00 committed by DIYgod
parent 43673a5147
commit ef6530059a
1 changed files with 1 additions and 3 deletions

View File

@ -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);