Skip to content

feat(route): add ahszu jwc tzgg #19341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wskeei
Copy link

@wskeei wskeei commented Jun 9, 2025

Involved Issue / 该 PR 相关 Issue

Close #

Example for the Proposed Route(s) / 路由地址示例

/ahszu/jwc/tzgg

New RSS Route Checklist / 新 RSS 路由检查表

  • New Route / 新的路由
  • Anti-bot or rate limit / 反爬/频率限制
    • If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • Date and time / 日期和时间
    • Parsed / 可以解析
    • Correct time zone / 时区正确
  • New package added / 添加了新的包
  • Puppeteer

Note / 说明

新增安徽宿州学院教务处通知公告路由。
包含全文获取和缓存。

Copy link
Contributor

github-actions bot commented Jun 9, 2025

Successfully generated as following:

http://localhost:1200/ahszu/jwc/tzgg - Success ✔️
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>安徽宿州学院 - 教务处通知公告</title>
    <link>https://jwc.ahszu.edu.cn/tzgg.htm</link>
    <atom:link href="http://localhost:1200/ahszu/jwc/tzgg" rel="self" type="application/rss+xml"></atom:link>
    <description>安徽宿州学院教务处发布的最新通知公告 - Powered by RSSHub</description>
    <generator>RSSHub</generator>
    <webMaster>contact@rsshub.app (RSSHub)</webMaster>
    <language>en</language>
    <lastBuildDate>Mon, 09 Jun 2025 16:47:07 GMT</lastBuildDate>
    <ttl>5</ttl>
    <item>
      <title>关于举办宿州学院2025年师范生“三字一话”大赛的通知</title>
      <description>&lt;p class=&quot;vsbcontent_start&quot;&gt;为提升我校师范生汉字书写和普通话水平,夯实师范生教学技能基本功,增强专业实践技能,教务处将组织我校2025年师范生“三字一话”大赛。现将大赛的有关事宜通知如下:&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;一、比赛项目&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;1.钢笔字比赛;&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;2.粉笔字比赛;&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;3.毛笔字比赛;&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;4.普通话比赛。&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;二、比赛方式&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;比赛分初赛和决赛两个阶段。初赛由设师范专业的二级学院自行组织,初赛应积极动员,引导师范生广泛参与,提升“三字一话”水平,并于6月16日前按要求报送参加决赛学生名单(附件1),电子版和盖章扫描版发送至szxysjk@ahszu.edu.cn,各二级学院参与决赛的人数不超过10人,决赛时间和地点另行通知。&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;三、决赛规则和要求&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;1.要求参赛选手为我校在校师范生。&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;2.“三字”比赛规则:&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;比赛方式为现场书写,参赛选手自带毛笔和钢笔(粉笔字在教室黑板书写),教务处提供参赛用纸和书写内容。参赛者在规定时间内进行规范字书写,其中粉笔字须用楷书或行书书写,毛笔字和钢笔字字体不限,异体字、“二简”字、自造字、错别字等不规范写法均为无效。粉笔字成绩占总分25%,钢笔字成绩占总分25%,毛笔字成绩占总分20%。&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;3.“一话”比赛规则:&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;普通话比赛为现场朗读,现场抽取朗读内容,普通话成绩占总分30%。&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;四、评审及奖励&lt;/p&gt;
        &lt;p class=&quot;&quot;&gt;学校将组织相关专家组成评审委员会进行综合评审打分,评选出一、二、三等奖,颁发荣誉证书。&lt;/p&gt;
        &lt;p class=&quot;&quot; style=&quot;text-align: right;&quot;&gt;2025年6月4日&lt;/p&gt;
        &lt;p class=&quot;vsbcontent_end&quot; style=&quot;text-align: right;&quot;&gt;教务处&amp;nbsp;&lt;/p&gt;
      </description>
      <link>https://jwc.ahszu.edu.cn/info/1482/17622.htm</link>
      <guid isPermaLink="false">https://jwc.ahszu.edu.cn/info/1482/17622.htm</guid>
      <pubDate>Fri, 11 Mar 1239 15:54:17 GMT</pubDate>
    </item>
  </channel>
</rss>

Copy link
Collaborator

@TonyRL TonyRL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +1 to +6
import type { Route, DataItem } from '../../types'; // 显式导入 DataItem
import cache from '../../utils/cache'; // 引入缓存工具
import ofetch from '../../utils/ofetch'; // 用于获取 HTML
import { load } from 'cheerio'; // 用于解析 HTML
import { parseDate } from '../../utils/parse-date'; // 用于解析日期
import timezone from '../../utils/timezone'; // 用于处理时区
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use @ instead of ../

Comment on lines +46 to +50
type InitialItem = {
title: string;
link: string;
pubDate: Date;
} | null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use

export type DataItem = {
instead of reinventing.

@@ -0,0 +1,6 @@
import type { Namespace } from '../../types';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use @ instead of ../

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants