Commit Graph
83 Commits
Author SHA1 Message Date
ueiu 65c2909640 fix(route): 中国政府网没有正确拼接相对地址路径 && 替换滚动新闻地址 (#12622)
* Update index.js

* fix(route): 中国政府网没有正确拼接相对地址路径 && 替换滚动新闻地址
2023-06-06 22:07:03 +08:00
github-actions[bot] c5cc5cf159 style: auto format 2023-06-04 14:07:24 +00:00
ueiu eb6b9e1b76 fix(route): contentUrl unexpected characters appear (#12612) 2023-06-04 22:04:28 +08:00
Felix Hsu 49946b69cf fix(route): change ccdi.gov with new css selector (#12478) 2023-05-09 01:58:57 -11:00
github-actions[bot] 3450e4c5ba style: auto format 2023-05-07 18:38:24 +00:00
drgnchan c93e63559a feat(route): 新增网信办订阅 (#12444)
* feat(route): 新增网信办订阅

* refactor: 时区设置

* polish

* polish

* refactor: cache path map
2023-05-08 02:35:44 +08:00
Tony 1d7f3bfe04 chore: stricter validation (#12409) 2023-04-29 05:28:38 +08:00
Mai1993 b088a9875a feat(route): add 重庆人事考试通知公告及重庆燃气停止检修通知 (#12203)
* 新增重庆人事考试通知及重庆燃气停气检修通知

* fix: cqgas

* fix: cq

---------
2023-04-23 22:05:26 +08:00
Ethan Shenanddependabot[bot] 17e7cbf2cc feat(route): add 国家统计局通用 (#12290)
* chore(deps): bump chrono-node from 2.6.2 to 2.6.3 (#513)

Bumps [chrono-node](https://github.com/wanasit/chrono) from 2.6.2 to 2.6.3.
- [Release notes](https://github.com/wanasit/chrono/releases)
- [Commits](https://github.com/wanasit/chrono/compare/v2.6.2...v2.6.3)

---
updated-dependencies:
- dependency-name: chrono-node
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump meilisearch from 0.32.2 to 0.32.3 (#518)

Bumps [meilisearch](https://github.com/meilisearch/meilisearch-js) from 0.32.2 to 0.32.3.
- [Release notes](https://github.com/meilisearch/meilisearch-js/releases)
- [Commits](https://github.com/meilisearch/meilisearch-js/compare/v0.32.2...v0.32.3)

---
updated-dependencies:
- dependency-name: meilisearch
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(route): 国家统计局通用

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 00:04:02 +08:00
github-actions[bot] fde08f1e79 style: auto format 2023-04-04 19:28:39 +00:00
zytomorrowandzytomorrow 8c66b20220 feat(route): add gov/sichuan/deyang/mztoday (#12213)
* feat(route): add gov/sichuan/deyang/mztoday

* feat(route): add gov/sichuan/deyang/mztoday

* feat(route): add gov/sichuan/deyang/mztoday

* feat(route): add gov/sichuan/deyang/mztoday

* Update lib/v2/gov/sichuan/deyang/mztoday.js

* fix: update maintainer and radar

---------

Co-authored-by: zytomorrow <z794672847@gamil.com>
2023-04-05 04:26:36 +09:00
github-actions[bot] a1be32deeb style: auto format 2023-04-04 18:58:48 +00:00
zytomorrowandzytomorrow 26e0ac6c7b fix(route): fix gov/sichuan/deyang/govpulicinfo (#12205)
* fix(route): fix gov/sichuan/deyang/govpulicinfo

* fix(route): fix gov/sichuan/deyang/govpulicinfo

* fix(route): fix gov/sichuan/deyang/govpulicinfo

* fix(route): fix gov/sichuan/deyang/govpulicinfo

* fix(route): fix gov/sichuan/deyang/govpulicinfo

* fix(route): fix gov/sichuan/deyang/govpulicinfo

* fix(route): fix gov/sichuan/deyang/govpulicinfo

* Update lib/v2/gov/sichuan/deyang/govpublicinfo.js

* fix(route): fix gov/sichuan/deyang/govpulicinfo

* Update lib/v2/gov/sichuan/deyang/govpublicinfo.js

* Update lib/v2/gov/sichuan/deyang/govpublicinfo.js

* fix: update radar and maintainer

---------
Co-authored-by: zytomorrow <z794672847@gamil.com>
2023-04-05 02:56:09 +08:00
github-actions[bot] 39a2582e3c style: auto format 2023-04-03 10:01:41 +00:00
tzjyxb 55a1d446c5 添加济南市卫建委获取国家医师资格考试通知的路由 (#12222) 2023-04-03 18:59:42 +09:00
drgnchan 2e56f7ad60 fix: 中国政府网-新闻要闻,中国政府网-部门政务 (#12219)
* fix: 修复中国政府网-新闻要闻的请求地址

* fix: 修复中国政府网-部门政务的css规则

* refactor: migrate to v2

---------
2023-04-03 00:40:17 +08:00
Tony 1474949bee fix(route): csrc (#11996) 2023-03-02 00:44:46 +08:00
Felix Hsu efd2bf2332 fix(route): fix stats-cn (#11964) 2023-02-27 08:40:54 -02:00
Tony 4ca2c8cdc4 feat(route): moe (#11926) 2023-02-22 00:25:32 +08:00
Tony 589ddb3a43 refactor(eslint): add back no-return-await (#11877)
* chore: add back no-return-await

* chore: fix action warning

* chore: fix all no-return-await
2023-02-16 04:30:05 +08:00
Felix Hsu 9d4cff8a7c fix(route): fix bphc URL changed (#11810) 2023-02-09 01:41:56 +08:00
Tonyandnczitzk 4a70a0ede9 feat(route): wuhan (#11701)
Co-authored-by: nczitzk <nczitzk@gmail.com>
2023-01-27 05:02:47 +08:00
github-actions[bot] f3b841f4f8 style: auto format 2022-12-18 14:30:48 +00:00
水货 f6ab7b6ac9 feat(route): 增加茂名地方政府网站 (#11239)
* feat(route): 增加茂名地方政府网站

* docs: 删除无关文档

* fix: 删除暂时未使用的路由

* feat: 增加从多个选择器中获取正文的功能

* fix: Avoid unnecessary redirects

* fix: 修复公开目录平台存在未使用的列表元素问题

* fix: 修复茂南页面列表中存在其他网站导致获取到空值的问题

* feat: 增加处理微信文章链接

* fix: 修复公开目录平台存在非文章链接的问题

* docs: 对维护者列表进行排序

* feat: 适配更多茂名政府网站页面

* feat: 适配更多茂名政府网站页面

* fix: 修复茂南的缓存问题

* feat: 使用 API 获取政策解读平台内容

* feat: 政策解读平台模板增加涉企信息

* feat: 政策解读平台模版增加样式

* fix: 修复政策解读平台解读条目缺失换行的问题

* docs: fix missing closing tag

* fix: 修复茂名市相关网站浏览器扩展匹配规则缺失域名部分的问题

* docs: 修改部分要填充内容的描述

* docs: 修改名称与文档一致

* docs: 修改茂名市相关网站层级
2022-12-18 22:29:01 +08:00
Tony 98a4c7ad77 feat(route): sasac (#11433) 2022-12-10 23:36:41 +08:00
drgnchan 51ec49d0de feat(route): 新增广州市人民政府 (#11339)
* feat[route]: 新增广州市人民政府

* fix(v2ex): enable allowEmpty and enrich pubDate

* refactor: move `gzgov` dir under `gov`

* refactor: replace `gzgov` by `gz` and change doc accordingly

* refactor: polish code

* refactor: polish code

* fix: maintainer path
2022-12-08 01:15:00 +08:00
何艺麒 f3db351b52 fix(route): gov.customs (#11387) 2022-12-05 17:17:19 -05:00
Shansing bcef9b23f6 feat(route): 支持长沙市市长信箱 (#11303)
* feat(route): 支持长沙市市长信箱

* fix(route): 长沙市市长信箱文章使用缓存

之前不使用缓存是担心详情页会新增信件回复。回想以后,很可能是先有回复才放出信件,综合考虑可以使用缓存。

* refactor(route): 长沙市市长信箱 follows suggestions
2022-11-22 21:05:08 +08:00
zxx-457 10cf5a2468 feat(route): add 国务院政策文件库 (#11301)
* feat(route): add 国务院政策文件库

* fix wrong author

* typo

* refactor: migrate to v2
2022-11-22 01:53:40 +08:00
Tony 493b2baafa fix(route): nmpa stealth puppeteer (#11279) 2022-11-15 18:46:34 +08:00
Ethan Shen b408e1d45d fix(route): 上海市药品监督管理局发布时间 (#11265) 2022-11-14 23:18:33 +08:00
Tony 58aee4c315 fix(route): jseea (#11075)
* fix(route): jseea

* fix: docs anchor
2022-10-13 20:07:17 +08:00
Felix Hsu b523c4dc31 feat(route): add bphc 北京共有产权住房租赁平台 (#10955)
* bphc

* radar ok

* change maintainer

* fix null checking err

* rss link should be rootUrl

* fix: sort routes
2022-09-30 00:14:20 +08:00
Felix Hsu 8edc638f79 fix(route): finally bypass the ccdi.gov cookie and js based anti-spider system (#10944)
* try to minic the js cookie behavior and bypass the anti spider

* add more selector for diff article

* regex polished

* fix(route): cookie setting should be called in await

* Extract the anti spider from js and finally bypass it
2022-09-29 08:37:34 +00:00
Felix Hsu 6ee0d23892 fix(route): ccdi cookie should be called in await style (#10927)
* try to minic the js cookie behavior and bypass the anti spider

* add more selector for diff article

* regex polished

* fix(route): cookie setting should be called in await
2022-09-28 04:39:06 +00:00
Bang-Bo 4271262854 fix(route): 广东省深圳市人民政府 - 通知公告 (#10910)
* fix(route): 广东省深圳市人民政府 - 通知公告

页面改版导致内容和时间异常

* chore: use parseDate

* refactor: migrate to v2
2022-09-27 04:04:43 +08:00
Felix Hsu 64322895ec refactor: try to mimic the js cookie behavior and bypass the anti spider in ccdi.gov (#10890)
* try to minic the js cookie behavior and bypass the anti spider

* add more selector for diff article

* regex polished
2022-09-26 19:13:18 +08:00
Felix Hsu de48ec5015 fix(route): CCDI.gov.cn route broken (#10879)
* fix ccdi site

* fix doc

* upgrade rate limit countermeasure and sort the router alphabetically

* set anticrawler flag in docs
2022-09-24 23:47:03 +08:00
Felix Hsu 7fdffa9133 refactor: Stats gov, change the img href from relative href to absolute href for better rss reading experiences. (#10875)
* add new statsgov

* Fix radar.js

* 1. Fix the missing optional chaining operator in reg matching 2. add the missing timezone change

* remove the dup $ in item

* optimize url

* stats.gov.cn refactored

* Modify doc

* more flexible pathname parsing

* Fix radar data

* change image src to absolute src

* more accurate comment.
2022-09-24 00:21:47 +08:00
Felix Hsu 0f2dd302c5 feat(route): Add stats.gov 国家统计局 (#10860)
* add new statsgov

* Fix radar.js

* 1. Fix the missing optional chaining operator in reg matching 2. add the missing timezone change

* remove the dup $ in item

* optimize url

* stats.gov.cn refactored

* Modify doc

* more flexible pathname parsing

* Fix radar data
2022-09-23 20:50:40 +08:00
Ethan Shen ea32d46ba9 feat(route): add 全国哲学社会科学工作办公室 (#10704)
* feat(route): add 全国哲学社会科学工作办公室

* add radar
2022-09-05 22:39:23 +08:00
Tony e3ffd5d7c1 fix(route): mofcom (#10641)
* fix(route): mofcom

* fix: typo
2022-08-28 10:33:16 -12:00
Tony b9e370f4b6 fix: remove normalizeWhitespace property
ref: https://github.com/cheeriojs/cheerio/pull/2688
2022-08-24 12:09:54 +00:00
Ethan Shenanddependabot[bot] b1af9b812d feat(route): 中国互联网络信息中心新闻中心 (#10591)
* chore(deps): bump dayjs from 1.11.4 to 1.11.5 (#258)

Bumps [dayjs](https://github.com/iamkun/dayjs) from 1.11.4 to 1.11.5.
- [Release notes](https://github.com/iamkun/dayjs/releases)
- [Changelog](https://github.com/iamkun/dayjs/blob/v1.11.5/CHANGELOG.md)
- [Commits](https://github.com/iamkun/dayjs/compare/v1.11.4...v1.11.5)

---
updated-dependencies:
- dependency-name: dayjs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump rand-user-agent from 1.0.76 to 1.0.77 (#259)

Bumps [rand-user-agent](https://github.com/WebScrapingAPI/rand-user-agent) from 1.0.76 to 1.0.77.
- [Release notes](https://github.com/WebScrapingAPI/rand-user-agent/releases)
- [Commits](https://github.com/WebScrapingAPI/rand-user-agent/commits)

---
updated-dependencies:
- dependency-name: rand-user-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump twitter-api-v2 from 1.12.3 to 1.12.5 (#261)

Bumps [twitter-api-v2](https://github.com/plhery/node-twitter-api-v2) from 1.12.3 to 1.12.5.
- [Release notes](https://github.com/plhery/node-twitter-api-v2/releases)
- [Changelog](https://github.com/PLhery/node-twitter-api-v2/blob/master/changelog.md)
- [Commits](https://github.com/plhery/node-twitter-api-v2/compare/1.12.3...1.12.5)

---
updated-dependencies:
- dependency-name: twitter-api-v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump puppeteer from 16.1.0 to 16.1.1 (#262)

Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 16.1.0 to 16.1.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v16.1.0...v16.1.1)

---
updated-dependencies:
- dependency-name: puppeteer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump rand-user-agent from 1.0.77 to 1.0.78 (#268)

Bumps [rand-user-agent](https://github.com/WebScrapingAPI/rand-user-agent) from 1.0.77 to 1.0.78.
- [Release notes](https://github.com/WebScrapingAPI/rand-user-agent/releases)
- [Commits](https://github.com/WebScrapingAPI/rand-user-agent/commits)

---
updated-dependencies:
- dependency-name: rand-user-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump ioredis from 5.2.2 to 5.2.3 (#271)

Bumps [ioredis](https://github.com/luin/ioredis) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/luin/ioredis/releases)
- [Changelog](https://github.com/luin/ioredis/blob/main/CHANGELOG.md)
- [Commits](https://github.com/luin/ioredis/compare/v5.2.2...v5.2.3)

---
updated-dependencies:
- dependency-name: ioredis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(route): 中国互联网信息中心新闻中心

* docs: fix typo

* update docs/government.md


Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-24 19:14:21 +08:00
2PoL 51b6f13340 feat(route): add 太原市人力资源和社会保障局 (#10413)
* add 太原市人力资源和社会保障局.

* change radar.js.

* fix pubDate.

* Standardized Code and make alphabetical order.

* fix: radar domain
2022-08-07 20:10:43 +08:00
Ethan Shen 6e3b368de3 fix(route): 中国载人航天飞行任务图片URL (#10390) 2022-08-04 06:51:11 +05:00
Ethan ShenandTony e761af6c86 feat(route): add 中国载人航天 (#10355)
* feat(route): add 中国载人航天

* docs: add category for /fxrw

* update lib/v2/gov/cmse/index.js

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* docs: add xwzt
2022-08-03 01:27:19 +08:00
terrytw e2ca9b81f6 fix(route): 国家药品监督管理局医疗器械标准管理中心 (#10364) 2022-07-31 03:06:36 -12:00
Ethan Shen 54aea1e4e7 feat(route): add 国家药品监督管理局医疗器械标准管理中心 (#10206)
* feat(route): add 国家药品监督管理局医疗器械标准管理中心

* fix: shorten the route

* fix: bad urls

* fix: only 1 puppeteer request
2022-07-16 20:47:53 +08:00
Ethan Shen 967492dcaa fix(route): 上海市药品监督管理局 (#10205) 2022-07-13 20:02:38 +08:00