feat: limit taoguba item

This commit is contained in:
DIYgod 2019-08-11 00:55:41 +08:00
parent d5d3b6abff
commit 50ed42bd11
No known key found for this signature in database
GPG Key ID: EC0B76A252D3EF67
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ module.exports = async (ctx) => {
const list = $('.p_list01').get();
const out = await Promise.all(
list.map(async (item) => {
list.slice(0, 5).map(async (item) => {
const $ = cheerio.load(item);
const time = $('.pcdj06').text();
const title = $('.pcdj02 a').attr('title');

View File

@ -9,7 +9,7 @@ module.exports = async (ctx) => {
const list = $('.article_tittle').get();
const out = await Promise.all(
list.map(async (item) => {
list.slice(0, 3).map(async (item) => {
const $ = cheerio.load(item);
const title = $('.tittle_data.left a').attr('title');
const partial = $('.tittle_data.left a').attr('href');