RSSHub icon indicating copy to clipboard operation
RSSHub copied to clipboard

feat(route): add nCoV2019

Open QieSen opened this issue 3 years ago • 2 comments

该 PR 相关 Issue / Involved issue

Close #

完整路由地址 / Example for the proposed route(s)

/coronavirus/tg-nCoV2019/广东

新 RSS 检查列表 / New RSS Script Checklist

  • [x] 新的路由 New Route
  • [x] 文档说明 Documentation
    • [x] 中文文档 CN
    • [ ] 英文文档 EN
  • [x] 全文获取 fulltext
    • [ ] 使用缓存 Use Cache
  • [ ] 反爬/频率限制 anti-bot or rate limit?
    • [ ] 如果有, 是否有对应的措施? If yes, do your code reflect this sign?
  • [x] 日期和时间 date and time
    • [x] 可以解析 Parsed
    • [ ] 时区调整 Correct TimeZone
  • [ ] 添加了新的包 New package added
  • [ ] Puppeteer

说明 / Note

QieSen avatar Apr 11 '22 02:04 QieSen

Any reasons why reinvent the wheel? You can get similar output from /telegram/channel/nCoV2019/searchQuery=%23广东

TonyRL avatar Apr 11 '22 10:04 TonyRL

@TonyRL If use /telegram/channel/nCoV2019, we will get such a title:

#疫情通报 #紧急寻人 #内蒙古 #Neimenggu #应急处置 #核酸检测 【#赤峰 市 #松山 区关于做好突发疫情应对工作的紧急通告】 2022年4月10日,赤峰市松山区在“愿检...

The route only intercepts part of the main body text, and won't adapt to the message structure of this channel.

If use this route, the title will be optimized:

#赤峰 市 #松山 区关于做好突发疫情应对工作的紧急通告 // 划定“三区”范围 // 赤峰市关于组织开展中心城区全员核酸检测的通告

This route will parse title from "【】" in the body, and splice multiple titles together (if any).

If a frequently used channel has its stable message structure, why not consider configuring a separate route. 🙂

QieSen avatar Apr 12 '22 03:04 QieSen

猜测这个路由已经没什么用了,所以本 pr 暂时关闭,如果还有疑问可以随时在下面继续讨论

DIYgod avatar Mar 19 '23 20:03 DIYgod