Skip to content
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

feat(router): ccac 澳门廉政公署 #8273

Merged
merged 5 commits into from
Nov 27, 2021
Merged

feat(router): ccac 澳门廉政公署 #8273

merged 5 commits into from
Nov 27, 2021

Conversation

linbuxiao
Copy link
Contributor

@linbuxiao linbuxiao commented Sep 26, 2021

该 PR 相关 Issue / Involved issue

Close #8251

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

/ccac/news/all

新RSS检查列表 / New RSS Script Checklist

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

说明 / Note

  1. Added Macau ICAC router. Since the page data is stored directly in js and the specific category cannot be determined by url. Use puppeteer to get the data of the list, and then parse the article details by cheerio.
  2. Fixed the documentation content of /icac/news/:lang?router. And cleaned up the way to get title for this route. Thanks to @TonyRL .

@vercel
Copy link

vercel bot commented Sep 26, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/diy/rsshub/44v1W94XtdjmsXGDWshxgNYsc4jC
✅ Preview: https://rsshub-git-fork-linbuxiao-ccac-diy.vercel.app

@github-actions
Copy link
Contributor

Successfully generated as following:

https://rsshub-h6ewm46m1-diy.vercel.app/ccac/news/:type/:lang? - **Failed**
    HttpError: <!DOCTYPE html><html><head><title>Error in RSSHub!</title><style>body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;color:#2c3e50}.content{width:800px;margin:100px auto 0;text-align:center}.message{white-space:pre-wrap;text-align:left}a{color:#f5712c}</style></head><body><div class="content"><p><img src="https://i.loli.net/2019/09/04/lmBbNQoLzrKGgiM.jpg" alt="RSSHub" width="120"></p><h1>Looks like something went wrong</h1><pre class="message">Route requested: /ccac/news/</pre><pre class="message">Error message: wrong path</pre><pre class="messaage">
Helpful Information to provide when opening issue: 
Path: /ccac/news/
Node version: v14.17.4
        </pre><pre class="message">
如果您认为 RSSHub 导致了该错误,请在Github按照模版,复制本页面信息进行<a href="https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">汇报</a>
If you believe this is an error caused by RSSHub, please <a href="https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">report on github</a>
        </pre><div style="margin:50px 0"><p>在线文档与支持,请访问<a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>。</p><p>For online documentation and support please refer to <a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>.</p></div></div></body></html>

@github-actions github-actions bot added the Auto: Route Test Complete Auto route test has finished on given PR label Sep 26, 2021
@github-actions
Copy link
Contributor

Successfully generated as following:

https://rsshub-apzcs53nm-diy.vercel.app/ccac/news/:type/:lang? - **Failed**
    HttpError: <!DOCTYPE html><html><head><title>Error in RSSHub!</title><style>body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;color:#2c3e50}.content{width:800px;margin:100px auto 0;text-align:center}.message{white-space:pre-wrap;text-align:left}a{color:#f5712c}</style></head><body><div class="content"><p><img src="https://i.loli.net/2019/09/04/lmBbNQoLzrKGgiM.jpg" alt="RSSHub" width="120"></p><h1>Looks like something went wrong</h1><pre class="message">Route requested: /ccac/news/</pre><pre class="message">Error message: wrong path</pre><pre class="messaage">
Helpful Information to provide when opening issue: 
Path: /ccac/news/
Node version: v14.17.4
        </pre><pre class="message">
如果您认为 RSSHub 导致了该错误,请在Github按照模版,复制本页面信息进行<a href="https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">汇报</a>
If you believe this is an error caused by RSSHub, please <a href="https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">report on github</a>
        </pre><div style="margin:50px 0"><p>在线文档与支持,请访问<a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>。</p><p>For online documentation and support please refer to <a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>.</p></div></div></body></html>

@linbuxiao linbuxiao mentioned this pull request Sep 26, 2021
13 tasks
docs/en/government.md Outdated Show resolved Hide resolved
docs/government.md Outdated Show resolved Hide resolved
docs/government.md Show resolved Hide resolved
lib/v2/ccac/news.js Outdated Show resolved Hide resolved
docs/en/government.md Show resolved Hide resolved
@github-actions
Copy link
Contributor

Successfully generated as following:

https://rsshub-70rl2ezqv-diy.vercel.app/ccac/news/:type/:lang? - **Failed**
    HttpError: <!DOCTYPE html><html><head><title>Error in RSSHub!</title><style>body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;color:#2c3e50}.content{width:800px;margin:100px auto 0;text-align:center}.message{white-space:pre-wrap;text-align:left}a{color:#f5712c}</style></head><body><div class="content"><p><img src="https://i.loli.net/2019/09/04/lmBbNQoLzrKGgiM.jpg" alt="RSSHub" width="120"></p><h1>Looks like something went wrong</h1><pre class="message">Route requested: /ccac/news/</pre><pre class="message">Error message: wrong path</pre><pre class="messaage">
Helpful Information to provide when opening issue: 
Path: /ccac/news/
Node version: v14.17.4
        </pre><pre class="message">
如果您认为 RSSHub 导致了该错误,请在Github按照模版,复制本页面信息进行<a href="https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">汇报</a>
If you believe this is an error caused by RSSHub, please <a href="https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">report on github</a>
        </pre><div style="margin:50px 0"><p>在线文档与支持,请访问<a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>。</p><p>For online documentation and support please refer to <a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>.</p></div></div></body></html>

@TonyRL
Copy link
Collaborator

TonyRL commented Sep 26, 2021

Use /ccac/news/all or any other example route for "Example for the proposed route(s)"

@github-actions
Copy link
Contributor

Successfully generated as following:

https://rsshub-m3b8z3hem-diy.vercel.app/ccac/news/:type/:lang? - **Failed**
    HttpError: <!DOCTYPE html><html><head><title>Error in RSSHub!</title><style>body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;color:#2c3e50}.content{width:800px;margin:100px auto 0;text-align:center}.message{white-space:pre-wrap;text-align:left}a{color:#f5712c}</style></head><body><div class="content"><p><img src="https://i.loli.net/2019/09/04/lmBbNQoLzrKGgiM.jpg" alt="RSSHub" width="120"></p><h1>Looks like something went wrong</h1><pre class="message">Route requested: /ccac/news/</pre><pre class="message">Error message: wrong path</pre><pre class="messaage">
Helpful Information to provide when opening issue: 
Path: /ccac/news/
Node version: v14.17.4
        </pre><pre class="message">
如果您认为 RSSHub 导致了该错误,请在Github按照模版,复制本页面信息进行<a href="https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">汇报</a>
If you believe this is an error caused by RSSHub, please <a href="https://github.com/DIYgod/RSSHub/issues/new?assignees=&labels=&template=bug_report.md" target="_blank">report on github</a>
        </pre><div style="margin:50px 0"><p>在线文档与支持,请访问<a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>。</p><p>For online documentation and support please refer to <a href="https://docs.rsshub.app/" target="_blank">docs.rsshub.app</a>.</p></div></div></body></html>

@linbuxiao
Copy link
Contributor Author

Use /ccac/news/all or any other example route for "Example for the proposed route(s)"

Ok, I think this will allow my preview to display properly.

@linbuxiao linbuxiao changed the title feat: router ccac feat(router): ccac 澳门廉政公署 Sep 28, 2021
@TonyRL TonyRL mentioned this pull request Nov 8, 2021
13 tasks
@DIYgod DIYgod merged commit 0edd6a7 into DIYgod:master Nov 27, 2021
auto-bot-ty added a commit to auto-bot-ty/RSSHub that referenced this pull request Nov 27, 2021
* docs: update sponsor

* feat: add hotukdeals

* feat: hotukdeals radar

* feat: add PS5 stock UK - The Independent

* fix(route): allow preLoginFlow of instagram to fail (DIYgod#8340)

Based on discussion in instragram-private-api repo, we do not need
this function for login.

See:
dilame/instagram-private-api#1411
dilame/instagram-private-api#1417

* style: auto format

* feat: pixiv PIXIV_IMG_PROXY

* fix: douban guid

* feat(route): add Research Gate Publications (DIYgod#7544)

* feat(route): add QuestMobile行业研究报告 (DIYgod#7552)

* chore: remove no-return-await eslint rule

* feat(route): add RSS3 Blog (DIYgod#7566)

Co-authored-by: DIYgod <[email protected]>

* style: auto format

* feat(route): add Odaily星球日报活动 (DIYgod#7666)

* feat: remove toutiao

* chore: format

* feat(route): add fashion network news (DIYgod#7602)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add dbaplus社群活动 (DIYgod#7584)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add 德阳考试中心 (DIYgod#7901)

* feat(route): add 央视网栏目 (DIYgod#7937)

Co-authored-by: DIYgod <[email protected]>

* style: auto format

* fix: infzm timezone (DIYgod#7695)

* fix: undefined error when no magnet & torrent (DIYgod#7745)

* feat(route): add World Health Organization News (DIYgod#8022)

Co-authored-by: DIYgod <[email protected]>

* fix: exclude datanews to prevent `pubDate` error (`/caixin/latest`) (DIYgod#8068)

* feat(route): add World Health Organization Speeches (DIYgod#8048)

Co-authored-by: DIYgod <[email protected]>

* Fix AP News article's title (DIYgod#8086)

* feat(route): add Now 熱門新聞 (DIYgod#8093)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add Uwants (DIYgod#8094)

Co-authored-by: DIYgod <[email protected]>

* fix: lazyloadRouteHandler

* fix: add Lofter话题/标签文章分类 & 视频 (DIYgod#8054)

* feat(route): add yunnan normal university (DIYgod#8097)

* feat(route): add 香港討論區 (DIYgod#8101)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add 香港高登 (DIYgod#8109)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add 华南理工大学教务处学院通知 (DIYgod#8110)

* fix(route): incorrect source links in yuzu emulator (DIYgod#8111)

* fix(route): migrate initium routes to new timezone (DIYgod#8124)

* feat(route): add yahoo japan covid19 news collection 日本疫情消息汇总 (DIYgod#8099)

* feat(route): add Asian to lick (DIYgod#8156)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* feat(route): add "micmicidol" (DIYgod#8070)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* feat(route):add 拷贝漫画 (DIYgod#7896)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* feat(route): add SBS中文 (DIYgod#8149)

Co-authored-by: DIYgod <[email protected]>

* feat(route): add Netflix Newsroom (DIYgod#8135)

Co-authored-by: SettingDust <[email protected]>
Co-authored-by: NeverBehave <[email protected]>
Co-authored-by: DIYgod <[email protected]>

* fix(route): 修正北京教育考试院内容提取错误 (DIYgod#8209)

* fix(route): dekudeals error due to ad (DIYgod#8214)

* feat(route): add 旺球体育直播间 (DIYgod#8276)

Co-authored-by: DIYgod <[email protected]>

* fix(route): 深圳证券交易所最新规则 (DIYgod#8284)

* feat(route): add 人民网领导留言板 (DIYgod#8285)

* feat(router): timednews 时刻新闻 (DIYgod#8279)

Co-authored-by: Tony <[email protected]>

* feat(router): ccac 澳门廉政公署 (DIYgod#8273)

Co-authored-by: Tony <[email protected]>

* add 安全文摘 (DIYgod#8294)

Co-authored-by: testkaili <[email protected]>
Co-authored-by: kaiili <[email protected]>

* feat(router): cebbank 光大银行 (DIYgod#8293)

* feat(route): add NGOCN (DIYgod#8301)

Co-authored-by: DIYgod <[email protected]>

* chore: format

* feat(route): add IT之家专题 (DIYgod#8312)

* feat(route)(v2): add 旅法师营地首页 (DIYgod#8350)

* feat(route): add 辛華社 (DIYgod#8357)

* feat(route): add Literotica Category (DIYgod#8415)

* feat(route): add Literotica News Stories (DIYgod#8410)

Co-authored-by: DIYgod <[email protected]>

* misc: add NOROUTE instruction back to template (DIYgod#8379)

Co-authored-by: Sukka <[email protected]>

* feat(route): jandan use the origin gif instead the thumbs (DIYgod#8406)

* feat(route): add HKJunkCall資訊中心 (DIYgod#8405)

* fix(route): fix furstar pic href (DIYgod#8404)

* feat(route): add ScienceDirect Journal (DIYgod#8399)

* feat(route): add Harvard Business Review Topic (DIYgod#8395)

* fix(route)(hket): migrate to v2 (DIYgod#8132)

* chore: format

Co-authored-by: DIYgod <[email protected]>
Co-authored-by: Shizun Ge <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Ethan Shen <[email protected]>
Co-authored-by: DIYgod <[email protected]>
Co-authored-by: zytomorrow <[email protected]>
Co-authored-by: Sean Chao <[email protected]>
Co-authored-by: junfengP <[email protected]>
Co-authored-by: Toby Tso <[email protected]>
Co-authored-by: ninboy <[email protected]>
Co-authored-by: SettingDust <[email protected]>
Co-authored-by: Rongrong <[email protected]>
Co-authored-by: coxde <[email protected]>
Co-authored-by: sgqy <[email protected]>
Co-authored-by: KotoriK <[email protected]>
Co-authored-by: btdwv <[email protected]>
Co-authored-by: NeverBehave <[email protected]>
Co-authored-by: erriy <[email protected]>
Co-authored-by: Kevin Carter <[email protected]>
Co-authored-by: linbuxiao <[email protected]>
Co-authored-by: Tony <[email protected]>
Co-authored-by: kaiili <[email protected]>
Co-authored-by: testkaili <[email protected]>
Co-authored-by: kaiili <[email protected]>
Co-authored-by: auto-bot-ty <[email protected]>
Co-authored-by: Yishuai Li <[email protected]>
Co-authored-by: Sukka <[email protected]>
Co-authored-by: Oddcc <[email protected]>
Co-authored-by: tuzi3040 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto: Route Test Complete Auto route test has finished on given PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

澳門廉政公署
3 participants