UNPKG

rsshub

Version:
19 lines (12 loc) 438 B
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 };