fix: zaker (#3042)
This commit is contained in:
parent
68c99a67cc
commit
08c0943d9c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue