fix: zaker (#3042)

This commit is contained in:
Cloud 2019-09-11 14:21:08 +08:00 committed by DIYgod
parent 68c99a67cc
commit 08c0943d9c
1 changed files with 5 additions and 5 deletions

View File

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