mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix: 重庆大学新闻网通知公告 (#6430)
This commit is contained in:
@@ -4,7 +4,7 @@ const cheerio = require('cheerio');
|
||||
module.exports = async (ctx) => {
|
||||
// const category = ctx.params.category;
|
||||
|
||||
// const baseUrl = 'https://news.cqu.edu.cn/newsv2/';
|
||||
const baseUrl = 'https://news.cqu.edu.cn/';
|
||||
const url = 'https://news.cqu.edu.cn/newsv2/list-18.html';
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
@@ -44,7 +44,7 @@ module.exports = async (ctx) => {
|
||||
}
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: link,
|
||||
url: baseUrl + link,
|
||||
});
|
||||
const $ = cheerio.load(response.data);
|
||||
const newsContent = $('div[class=content]', 'div[class="container detail"]');
|
||||
|
||||
Reference in New Issue
Block a user