Files
RSSHub/lib/v2/jou/home.js
T
Jaya 322dd10a43 feat(routes): add 南京晓庄学院图书馆通知公告、江苏海洋大学通知公告、江苏海洋大学研招网通知公告 (#12176)
* feat: add jou yztzgg

* feat: add njxzc lib tzgg

* feat: add jou index and yz && njxzc lib

* docs: update university.md

* fix: fix typos in jou and njxzc

* docs: remove the  extra backslash

* fix: fix university.md

* refactor: Extract common getItems function into utils/index.js

* fix: fix typos in njxzc/radar.js

* refactor: filter the tr items with css selector

* fix: fix invalid date

* style: format jou utils

* fix: add timeStyleClass2 in jou yz
2023-03-27 20:11:01 +08:00

19 lines
512 B
JavaScript

const { getItems } = require('./utils');
const url = 'https://www.jou.edu.cn/index/tzgg.htm';
const host = 'https://www.jou.edu.cn';
module.exports = async (ctx) => {
const out = await getItems(ctx, url, host, 'winstyle106390', 'timestyle106390', 'titlestyle106402', 'timestyle106402');
// 生成RSS源
ctx.state.data = {
// 项目标题
title: '江苏海洋大学 -- 通知公告',
// 项目链接
link: url,
// items的内容
item: out,
};
};