parent
43673a5147
commit
ef6530059a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue