mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 19:59:54 +08:00
13 lines
330 B
JavaScript
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,
|
|
};
|
|
};
|