Files
RSSHub/lib/v2/csu/fetch_article.js
Jigsaw a82e9057ca feat(route): add 中南大学计算机学院通知 (#9631)
* feat(route): add 中南大学计算机学院通知

* fix: use nullish coalescing
2022-04-26 19:48:50 +08:00

13 lines
330 B
JavaScript

const cheerio = require('cheerio');
const got = require('@/utils/got');
module.exports = async function fetch(address) {
const res = await got(address);
const $ = cheerio.load(res.data);
return {
description: $('[name="_newscontent_fromname"]').html(),
link: address,
guid: address,
};
};