Commit Graph

3572 Commits

Author SHA1 Message Date
Rongrong 95db3b4e99
fix(core): torrent searching error (#9407)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-29 21:12:16 +08:00
Rongrong cd91931876
feat(route): try to avoid being anti-crawled (#9406)
* feat(route)(weibo): try to avoid being anti-crawled

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* refactor(route)(telegram/channel): migrate to `cache.tryGet`

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* feat(route)(douban): try to avoid being anti-crawled

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* feat(route)(picuki): try to avoid being anti-crawled

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* ref: got.get() to got()
2022-03-29 20:58:46 +08:00
CaoMeiYouRen b70e690a5c
feat(route): 新增 米游社 路由 (#9404)
* feat: 优化B站动态转发内容中的图片和视频

* style: 修复格式错误

* fix: 修复 B站动态转发多图的图片缺失

* style: 整理代码格式

* style: 整理代码格式

* fix: 修复B站动态转发视频缺失标题

* fix: 移除了部分不必要的代码

* fix: 修复b站动态中转发直播间动态出现undefined;整理部分代码

* style: 整理代码格式

* fix: 补充b站动态中转发活动的信息

* fix: 修正代码格式

* fix: b站动态转发专题页缺少标题;整理部分代码

* fix: 修复图片错误

* fix: 修复专栏封面缺失的bug;增加B站动态格式总结

* style:修复格式问题

* fix: 修复/robots.txt路由

* fix

* chore: 合并冲突

* fix

* fix

* feat: 优化B站动态url

* fix: 改 \n 为<br>

* chore: 更新 npm registry

* feat: 完成 米游社路由和文档的编写

* fix: 修复 @vuepress/shared-utils 在 yarn.lock 的缺失

* chore: exact match

* fix: parseDate
2022-03-29 20:21:21 +08:00
Rongrong 1fc9c4aa0d
fix(route)(douban/wish): username in feed title (#9408)
fix(route)(douban/wish): username in feed title
2022-03-28 17:47:10 -11:00
Fatpandac 21dbeba12f
feat(route): 华硕 固件 (#9403)
* feat(route): 华硕 固件

* fix(route): change radar url and modify the date format
2022-03-28 23:16:17 +08:00
Rongrong 501dff59d0
refactor(core): unified memory cache (#9395)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-28 22:55:29 +08:00
Tony cd151f45ab
fix(utils): parseDate custom format not working 2022-03-28 22:25:40 +08:00
Genghis Yang 33eb860b08
fix(route): mpaypass news (#9367)
* fix(route): mpaypass news

* refactor: migrate to v2

* fix: parseDate
2022-03-28 20:41:20 +08:00
Ethan Shen 5927f28121
fix(route): PubMed Trending articles (#9402) 2022-03-28 20:20:30 +08:00
Tony 668286a58b
fix(route): qweather namespace (#9398) 2022-03-27 23:59:47 +08:00
Ethan Shen a3396029ec
fix(utils): wrong last weekday for relative date (#9397) 2022-03-27 23:39:44 +08:00
Rongrong 8c2039902e
feat(route)(weibo): display comments (#9394)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-27 01:51:42 +08:00
忧郁的紫色毛衣男孩 e61a90db77
fix(route): geo daily photo (#7555)
* 完成issues#7485,在每日一图-国家地理中增加每日精选节点

* 修改文档和router位置

* 对日期pubDate规范进行了调整

* 优化调整获取内容逻辑,修改pubDate字段的获取方式

* 调整pubDate参数

* 删除代码中多余的console

* 调整parse-date引用

* 调整时区

* issues-#7471,解决国家地理每日一图获取失败问题,因为网站更改,并且网站对图片进行了处理,所以调整获取方式。

* 删除无用代码

* 调整代码,错删了代码

* refactor: migrate to v2

* fix: nat geo photo of the day

* fix: natgeo parseDate

* style: lint

* feat: radar for natgeomedia.com

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-03-27 00:09:34 +08:00
Ethan Shen e42bdf3d97
fix(utils): typo in parse-date (#9391)
* fix(utils): typo in parse-date

* fix: add `后日`
2022-03-26 19:44:27 +08:00
Ethan Shen be5dd42e09
feat(route): add 安徽省科技厅 (#9387)
* feat(route): add 安徽省科技厅

* update lib/v2/gov/radar.js

* refactor: sort radar in alphabetical order
2022-03-26 18:12:54 +08:00
Rein-Ou b55e9a3883
fix(route): Weather forcast (#9390)
* weather_forcast

* format

* cache

* Update lib/v2/weather/index.js

* Update lib/v2/weather/util/location.js

* Update docs/forecast.md

* modify

* Update forecast.md

* readme.md

* docs: reorder `HEFENG_KEY`

* fixed cache problem

* dependent fix

* add link

* Update index.js

* fix dependent

* index

* fix md doc
2022-03-26 17:55:04 +08:00
Ethan Shen d5648b37ee
fix(utils): parse relative dates with multiple time units (#9365)
* fix(utils): parse relative dates with multiple time units

* docs: remove warning

* fix: add more characters to match

* fix: rename to parse-date
2022-03-26 16:45:42 +08:00
Rein-Ou 2a728f1e1c
feat(route): add Weather forcast (#9382)
* weather_forcast

* format

* cache

* Update lib/v2/weather/index.js

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

* Update lib/v2/weather/util/location.js

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

* Update docs/forecast.md

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

* modify

* Update forecast.md

* readme.md

* docs: reorder `HEFENG_KEY`
2022-03-25 23:57:33 +08:00
Ethan Shen 8ecad32db2
feat(route): add 澎湃明查 (#9380)
* feat(route): add 澎湃明查

* fix: 839studio routes

* docs: update example url

* fix: parseDate
2022-03-25 22:05:27 +08:00
Humble c91a4cdd1d
feat(route):add 政采云前端小报和博客 (#9379)
* feat(route):add 政采云前端小报和博客

* fix:因为使用了空值合并操作符??,所有node的版本必须大于等于14

* feat(route):add 政采云前端小报和博客

* fix:因为使用了空值合并操作符??,所有node的版本必须大于等于14

* docs:新增英文说明

* docs:调整位置

* feat: Modify Backquotes

* fix:remove duplicate rssbud and add zooTeam

* fix: add a close tag

* docs: fix docs tags and attrs

* fix:add timezone
2022-03-25 20:47:06 +08:00
huangliangshusheng d1cda2a2be
feat(route): add kakuyomu (#9371)
* feat(route): add kakuyomu

* feat(route): add kakuyomu

* add pubDate

* fix radar rule
2022-03-25 20:23:57 +08:00
Qin Ruizhe f3618bb148
feat(route): fix NUAA 教务处/计算机科学与技术学院信息 (#9361)
* feat(route): fix NUAA 教务处/计算机科学与技术学院信息

* refactor: migrate to v2

* fix: deprecated url.resolve
2022-03-25 03:21:32 +08:00
Fatpandac 259bcf1e5c
fix(route): ifeng/feng this route is empty (#9372)
* ifeng/feng this route is empty

* refactor: migrate to v2

* fix: parseDate
2022-03-24 01:47:29 +08:00
Tony baeafb97a5
feat: git hash on error (#9373) 2022-03-24 01:10:47 +08:00
Tony 6ba0cb246e
fix(route): dbmv category not working (#9366) 2022-03-23 22:34:35 +08:00
Tony c7cb516321
fix(route): headers in got usage (#9363) 2022-03-22 23:19:20 +08:00
Kevin Schaul 95789aafaa
feat(rotue): add nytimes/author route (#9356)
* Add nytimes/author route

* Removed unnecessary logger and fs usage

* refactor: migrate to v2
2022-03-22 22:52:49 +08:00
Ethan Shen d84ab79163
feat(route): add 中华人民共和国外交部外交动态 (#9348)
* feat(route): add 中华人民共和国外交部外交动态

* fix: wrong pubDate
2022-03-22 04:20:12 +08:00
Rongrong c48ca6bd5b
fix(core): invalid feed fields (#9286)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-22 02:13:15 +08:00
Tony fe775f5198
fix(route): github comments use api (#9358)
fix(route): github comments use api
2022-03-21 17:17:59 +00:00
Bin Wang 6b3d21438e
feat(route): add icon and logo to Bilibili atom feed (#9353)
Fetch Bilibili user avatar and use it as icon and logo for atom feed
2022-03-22 00:06:35 +08:00
Genghis Yang 10118b004f
fix(core): MEMORY_MAX should be an integer (#9352) 2022-03-20 23:06:41 +08:00
dependabot[bot] db78d3d275
chore(deps): bump tiny-async-pool from 1.2.0 to 2.0.1 (#9350)
* chore(deps): bump tiny-async-pool from 1.2.0 to 2.0.1

Bumps [tiny-async-pool](https://github.com/rxaviers/async-pool) from 1.2.0 to 2.0.1.
- [Release notes](https://github.com/rxaviers/async-pool/releases)
- [Commits](https://github.com/rxaviers/async-pool/compare/v1.2.0...v2.0.1)

---
updated-dependencies:
- dependency-name: tiny-async-pool
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* fix(route): tiny-async-pool v2 compatibility, url.resolve

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-03-20 22:40:32 +08:00
Ethan Shen 6477e6b8e4
feat(route): 观察者网输出全文 (#9338)
* feature(route): 观察者网输出全文

* fix: add radar

* fix typo

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

* fix: add timezone

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-03-19 21:01:03 +08:00
Ethan Shen b2137fc283
fix(route): JavBus alternative domain related links (#9336)
* fix(route): JavBus alternative domain related links

* fix: add magnets and previews in cache

* fix: remove redundant cache
2022-03-19 20:35:00 +08:00
Tony 96d392fec9
fix(route): github pull requests (#9341)
* fix(route): github pull

* fix: typo
2022-03-19 03:14:53 +08:00
Rongrong 41910802f2
feat(core): caching enhancements (#9227)
* fix(core): redis cache ignore `maxAge` when refreshing

memory cache do not have such a problem

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* feat(core): make `cache.tryGet()` refreshing selectable

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>

* docs: `ctx.cache.tryGet()` update

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-19 02:13:15 +08:00
Rongrong 933080a1f5
fix(route)(nikkei-cn): imprudent slice; selector lack; duplicated article (#9337)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-18 21:32:09 +08:00
Tony 2ed9fd5c5f
chore: bump lru-cache from 6.0.0 to 7.7.1 (#9339)
* feat(core): lru-cache v7

* chore: bump lru-cache to 7.7.1

* feat: configurable max
2022-03-18 21:08:04 +08:00
Tony ba198d09c4
fix(route): rfa missing url property (#9326)
* fix(route): rfa missing url property

* docs: add missing en h3 title

* fix: use nullish coalescing operator
2022-03-16 05:14:49 +08:00
Fatpandac 0ec2b01ec2
feat(route): add 政策研究, 工作论文 and refactor to V2 (#9324)
* feat(route): add 政策研究, 工作论文 and refactor to V2

* fix: depreciated url.resolve pubDate
2022-03-16 04:13:45 +08:00
TonyRL b93f6fe856 fix: error page bug report url 2022-03-15 15:30:25 +00:00
Ethan Shen a1a62813e2
feat(route): add 中国工人出版社新闻中心 (#7303)
* feat(route): add 中国工人出版社新闻中心

* refactor: migrate to v2

* fix: parseDate typo in router.js

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-03-15 23:10:32 +08:00
Rongrong 96e803fba6
fix(route): node.js 14 has no `replaceAll` (#9323)
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
2022-03-15 17:09:01 +08:00
Fatpandac 194a522fc8
fix(route): ixigua_user anti-crawler policy upgrade and refactor to V2 (#9314)
* fix(route): ixigua_user anti-crawler policy upgrade and refactor to V2

* fix(route): replaces '/' with itself and fix item's link
2022-03-15 03:08:14 +08:00
Fatpandac ea0022cbcf
feat(route): add 差评快讯 and refactor to V2 (#9319)
* feat(route): add 差评快讯 and refactor to V2

* fix: parseDate
2022-03-15 02:30:06 +08:00
heunghingwan 9dc20280e8
fix(route): gov/fmprc/fyrbt 修复发布日期提取 (#9317)
* 修复发布日期提取

* fix: depreciated url.resolve Invalid Date
2022-03-14 21:08:20 +08:00
Zhen Zhong 3baeb0aa8c
feat(route): add bitbucket commits and tags (#9316)
* add bitbucket commits and tags

* add english doc

* fix bitbucket radar.js

* fix bitbucket docs

* docs: add bitbucket cn docs

* fix: use parseDate utils
2022-03-14 20:57:54 +08:00
Fatpandac fddd2719a4
fix(route): flyert_preferential get fulltext (#9315)
* fix(route): flyert_preferential get fulltext

* fix(route): add timezone
2022-03-14 20:39:37 +08:00
Shao ye ee1eab23d8
fix njupt posts with url redirections (#8961)
* fix njupt posts with url redirections

skip posts that are redirected to error pages due to access control

* fix: migrate to v2

* fix: pubDate depreciated url.resolve

Co-authored-by: TonyRL <TonyRL@users.noreply.github.com>
2022-03-13 22:24:06 +08:00