mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: /paidai/news issue (#6443)
This commit is contained in:
@@ -2,7 +2,7 @@ const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
const utils = require('./utils');
|
||||
|
||||
const host = 'http://news.paidai.com/';
|
||||
const host = 'http://www.paidai.com/';
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = host;
|
||||
@@ -14,13 +14,13 @@ module.exports = async (ctx) => {
|
||||
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
const list = $('.news_list ul.list>li')
|
||||
const list = $('#topic_list ul li.topic')
|
||||
.slice(0, 11)
|
||||
.map(function () {
|
||||
const info = {
|
||||
title: $(this).find('h3 a').attr('title'),
|
||||
link: $(this).find('h3').find('a').attr('href'),
|
||||
date: $(this).find('.post_info').text(),
|
||||
title: $('.li_1 a.i_title', this).attr('title'),
|
||||
link: $('.li_1 a.i_title', this).attr('href'),
|
||||
date: $('.li_2 .li_s', this).text(),
|
||||
};
|
||||
return info;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user