rsshub
Version:
Make RSS Great Again!
15 lines (12 loc) • 602 B
JavaScript
const utils = require('./utils');
const baseurl = 'http://xsc.lixin.edu.cn';
module.exports = async (ctx) => {
const link = baseurl + `/info/iList.jsp?cat_id=${ctx.params.id}`;
const { list, title } = await utils.fetchMain(link, 'body > div.details > div.contentright > div.rightlist > ul > li');
ctx.state.data = {
title: `${title} - 学生处 - 上海立信会计金融学院`,
link,
description: `${title} - 学生处 - 上海立信会计金融学院`,
item: await utils.fetchDetail(list, baseurl, 'body > div.neirong > div.rong', ctx.cache),
};
};