rsshub
Version:
Make RSS Great Again!
19 lines (12 loc) • 438 B
text/typescript
import got from '@/utils/got';
import { load } from 'cheerio';
const baseUrl = 'https://www.woshipm.com';
const parseArticle = (item, tryGet) =>
tryGet(item.link, async () => {
const { data: response } = await got(item.link);
const $ = load(response);
$('.support-author').remove();
item.description = $('.article--content').html();
return item;
});
export { baseUrl, parseArticle };