fix: zaker (#3042)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user