From b67157645cec0e91c752707a55d0e43bbdcc5850 Mon Sep 17 00:00:00 2001 From: evnydd0sf Date: Tue, 4 Oct 2022 14:33:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=BE=E8=AE=A1=E5=AD=A6?= =?UTF-8?q?=E9=99=A2=E7=A0=94=E5=88=9B=E3=80=81=E5=90=8E=E6=B5=AA=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/university.md | 14 ++++++++------ lib/v2/nua/dc.js | 14 +++++++++++++- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/docs/university.md b/docs/university.md index 12f1aacab6..5aa9821f38 100644 --- a/docs/university.md +++ b/docs/university.md @@ -2118,12 +2118,14 @@ jsjxy.hbut.edu.cn 证书链不全,自建 RSSHub 可设置环境变量 NODE_TLS -| 新闻模块 | 参数 | -| ---------- | ------- | -| 学院新闻 NEWS | news | -| 教学 TEACH | teach | -| 项目 PROJECT | project | -| 党团 PARTY | party | +| 新闻模块 | 参数 | +| ---------------------- | ---------- | +| 学院新闻 NEWS | news | +| 展览 EXHIBITION | exhibition | +| 研创 RESEARCH & CREATION | rc | +| 项目 PROJECT | project | +| 党团 PARTY | party | +| 后浪 YOUTH | youth | diff --git a/lib/v2/nua/dc.js b/lib/v2/nua/dc.js index d02a7126d4..40f29c39ee 100644 --- a/lib/v2/nua/dc.js +++ b/lib/v2/nua/dc.js @@ -17,7 +17,7 @@ module.exports = async (ctx) => { artiContent = '.article'; webPageName = 'li.pre35.left .big_title'; break; - case 'teach': + case 'exhibition': listName = 'li.pre65.right li.effects'; listDate = '.date'; artiContent = '.article'; @@ -29,12 +29,24 @@ module.exports = async (ctx) => { artiContent = '.article'; webPageName = 'ul.center .big_title'; break; + case 'rc': + listName = 'div.pre65.left p.small_content_2'; + listDate = '.date'; + artiContent = '.article'; + webPageName = 'div.pre65.left.is-inview .big_title'; + break; case 'party': listName = 'div.pre35.right li.party_list'; listDate = '.date'; artiContent = '.article'; webPageName = 'div.pre35.right .big_title'; break; + case 'youth': + listName = 'ul.works_list p.small_content_2'; + listDate = '.date'; + artiContent = '.article'; + webPageName = 'ul.screen_4 .big_title'; + break; default: throw Error(`暂不支持对${type}的订阅`); }