* feat(sduwh): add extractors. * feat(route): add route for 山东大学(威海)新闻网 * docs: for route sduwh/news * docs: for route sduwh/news (cherry picked from commit 831830167a39a658520dd9a46b375fdbbcb5d611) * feat(radar): for route 山东大学(威海)新闻网 * refactor: change `got.get` to `got`. * refactor: prefer `parseDate()` to `new Date()` Co-authored-by: Tony <TonyRL@users.noreply.github.com> * fix: incomplete URL substring sanitization. Make CodeQL happy. * fix(radar): fix target field. * fix: change route /sduwh to /sdu/wh * fix: remove superfluous slash character in url. * feat: look for exact date first. * feat: extract exact date from news extractor. * feat: extract exact date from view extractor. * feat: extractor for www.sdrj.sdu.edu.cn * refactor: semantic separation of sduwh with sdu * feat(radar): more accurate name * docs: update documentation * refactor: migrate to v2 * refactor: fix deprecated url.resolve * fix: update docs url Co-authored-by: Tony <TonyRL@users.noreply.github.com> * fix: sdu not working routes * fix: accurate `ctx.state.data.url` Co-authored-by: Tony <TonyRL@users.noreply.github.com> * fix: better error handling for extractors. * fix: timezone Co-authored-by: Tony <TonyRL@users.noreply.github.com> * fix: better error handling. Co-authored-by: Tony <TonyRL@users.noreply.github.com>
62 lines
1.8 KiB
JavaScript
62 lines
1.8 KiB
JavaScript
module.exports = {
|
|
wh: {
|
|
news: {
|
|
name: '山东大学(威海)新闻网',
|
|
route: '/news',
|
|
source: ['/'],
|
|
titlePrefix: '(威海)新闻网|',
|
|
docs: 'https://docs.rsshub.app/university.html#shan-dong-da-xue-wei-hai',
|
|
getTarget(url) {
|
|
return this.route + '/' + url.replace(/\.htm$/, '');
|
|
},
|
|
url: 'https://xinwen.wh.sdu.edu.cn/',
|
|
columns: {
|
|
xyyw: {
|
|
name: '校园要闻',
|
|
url: 'xyyw.htm',
|
|
},
|
|
xsdt: {
|
|
name: '学生动态',
|
|
url: 'xsdt.htm',
|
|
},
|
|
zhxw: {
|
|
name: '综合新闻',
|
|
url: 'zhxw.htm',
|
|
},
|
|
sdsd: {
|
|
name: '山大视点',
|
|
url: 'sdsd.htm',
|
|
},
|
|
jjxy: {
|
|
name: '菁菁校园',
|
|
url: 'jjxy.htm',
|
|
},
|
|
xyjx: {
|
|
name: '校园简讯',
|
|
url: 'xyjx.htm',
|
|
},
|
|
mjzc: {
|
|
name: '玛珈之窗',
|
|
url: 'mjzc.htm',
|
|
},
|
|
rdzt: {
|
|
name: '热点专题',
|
|
url: 'rdzt.htm',
|
|
},
|
|
mtsj: {
|
|
name: '媒体视角',
|
|
url: 'mtsj.htm',
|
|
},
|
|
gjsy: {
|
|
name: '高教视野',
|
|
url: 'gjsy.htm',
|
|
},
|
|
llxx: {
|
|
name: '理论学习',
|
|
url: 'llxx.htm',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|