Commit Graph
8322 Commits
Author SHA1 Message Date
Ethan Shen d91d4681a0 feat(route): add Cloudflare Status (#20514)
* feat(route): add Cloudflare Status

* fix: missing type
2025-11-20 00:09:54 +08:00
FrozenStarandYuki Chiyo 46086571b9 feat(route): add East China Normal University Undergraduate Office notice (#20515)
* feat(route): add East China Normal University Undergraduate Office notices

Co-authored-by: Yuki Chiyo <chiyo.uk@outlook.com>

* fix(route): delete a useless option and modified outdated url

Co-authored-by: Yuki Chiyo <chiyo.uk@outlook.com>

---------

Co-authored-by: Yuki Chiyo <chiyo.uk@outlook.com>
2025-11-19 21:57:07 +08:00
Tony d5cd095599 feat(route): add picnob.info (#20517) 2025-11-19 03:02:28 +08:00
Tony 5f80a3001f fix(route/google): replace puppeteer with google-play-scraper (#20516)
* feat(route/google): replace puppeteer with google-play-scraper

* fix: override more deps

* fix(route/google/play): correct import casing for google-play-scraper
2025-11-19 02:54:37 +08:00
Keo ccfca1ad19 fix(route/ntrblog): use utils/got to get feed content (#20511) 2025-11-19 01:55:34 +08:00
surwallandXinhao Luo 1ffd371dfe feat(route): add Google Play Store (#20231)
Co-authored-by: Xinhao Luo <neverbehave@fastmail.com>
2025-11-17 13:32:10 -08:00
Andvari ed51422824 fix(route/initium): replace got with ofetch and handle dead link (#20494)
* fix(route/initium): replace got with ofetch and handle dead link

* fix(route/theinitium): update fetchWebPage to handle new article structure
2025-11-18 01:29:51 +08:00
Stephen Zhou 4ab0547d9d fix(route/picnob): ignore detail page error 2025-11-17 12:24:20 +08:00
Ethan Shen 87e2225139 fix(route): 中国炼焦行业协会 (#20493) 2025-11-17 00:13:31 +08:00
Liao-Ke 6e5409d7eb feat(route): add AI 博客 (#20488)
* feat(route): add AI 博客

新增了一个归档路由处理函数,用于抓取AI博客的所有文章归档。

- 定义了一个新的路由配置对象`route`,路径为`/archives`,属于`blog`类别。
- 使用`ofetch`获取归档页面内容,并通过`cheerio`解析HTML。
- 遍历每个月份分组内的每篇文章,提取标题、链接、发布时间,并存储在列表中。
- 对列表中的每个条目,使用`cache.tryGet`缓存文章详情,若无缓存则再次使用`ofetch`获取,并解析出文章的主要内容。
- 返回处理后的结果对象,包含优化后的标题、归档页面链接以及过滤无效数据后的文章列表。

新增了一个命名空间配置对象`namespace`,用于定义AI博客的基本信息。

- 定义了一个新的命名空间配置对象`namespace`,包含站点名称、URL和语言。

* refactor(handler): 优化归档页面处理逻辑

- 使用 `toArray()` 和 `flatMap()` 方法简化了遍历每个月份分组和提取文章信息的代码逻辑。
- 修正了 `link` 属性的处理,确保当链接不存在时返回空字符串。
- 添加了 `author` 和 `description` 属性到文章对象中,以便更完整地描述文章内容。
- 精简了每个文章项的 `description` 构建,去除了不必要的 HTML 结构复制。
2025-11-16 23:48:33 +08:00
DIYgod 92032a8c51 fix(twitter): update proxy agent implementation to use new Client and HttpCookieAgentCookie 2025-11-15 09:37:48 +08:00
DIYgod d03f5697a4 fix(twitter): replace zstd decompression with gzip for third-party API requests 2025-11-15 09:01:46 +08:00
Tony e3c18adc71 chore: bump to node 24 (#20486) 2025-11-15 03:56:04 +08:00
github-actions[bot] 099fde307f style: auto format 2025-11-14 17:58:02 +00:00
Tony daf9460e6a fix(router/twitter): replace zstd decoder with native zlib decompression (#20485)
* fix(twitter): replace zstd decoder with native zlib decompression

* fix(twitter): update node version compatibility and enable experimental features
2025-11-15 01:56:23 +08:00
Ethan Shen d9d807ab12 feat(route): add 数字尾巴视频 (#20470)
* feat(route): add 数字尾巴视频

* fix pubDate
2025-11-15 00:15:22 +08:00
Stephen Zhou 2cb11d7c7e fix(route/picnob): support img not in slide 2025-11-14 22:10:32 +08:00
Stephen Zhou 400fb1fa49 fix(route/picnob): use puppeteer-real-browser to pass cf check (#20478) 2025-11-14 15:32:09 +08:00
DIYgod a07565d356 feat(api): implement zstd decoding for third-party API responses 2025-11-14 14:13:18 +08:00
DIYgod 6e29199fd2 fix(cache): update request URL for cookie retrieval in getCookie function 2025-11-14 12:08:13 +08:00
IChengHo 6969cf1bcb fix(route/twreporter): Prevent crash when hero_image or og_image is missing (#20481)
The original code directly accessed nested properties on
`post.hero_image`, which is not guaranteed to exist.
This cause a TypeError when the image object was nil.

This commit introduces safe access by:
- Prioritizing `hero_image` but falling back to `og_image`
- Only rendering the banner if a valid image URL was resolved
2025-11-14 11:22:13 +08:00
2ae10a7a02 feat: replace rand-user-agent with header-generator (#20480)
* Initial plan

* Replace @tonyrl/rand-user-agent with header-generator and add sec-ch-* headers

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

* Extract unwanted UA validation into standalone isValidUserAgent function

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

* Add headerGeneratorPreset option to got and ofetch utilities

* Replace randUserAgent usage in lib/routes with headerGeneratorPreset option

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

* chore: pin header-generator to exact match

* fix: replace randUserAgent with a static user agent string in config

* Remove deprecated _randUserAgent function and related tests

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

* refactor: rename to header-generator

* Changes before error encountered

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

* fix: update generateHeaders parameter type to Partial<HeaderGeneratorOptions>

* fix: add ios preset

* fix: rename headerGeneratorPreset to headerGeneratorOptions

* feat: add MODERN_IOS preset and update header-generator patch hash

* fix: use ios preset

* fix: update FetchOptions to include headerGeneratorOptions type

* refactor: simplify header generation and update header inclusion list

* fix: remove header-generator patch

* refactor: update user-agent handling in requests and tests

* test: remove redundant headerGeneratorOptions test and add new ofetch header preset test

* test: add custom user-agent test for ofetch

* test: update user-agent expectation in ofetch headers test

* Update lib/utils/ofetch.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor: replace hardcoded headers with generatedHeaders in fetch and get request handlers

* refactor: rename test suite from rand-user-agent to header-generator and remove unused dependency

* Update lib/utils/header-generator.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: TonyRL <11386903+TonyRL@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-14 00:49:41 +08:00
Ethan Shen 60ad86b6f6 fix(route): 艾瑞咨询研究报告 (#20450)
* fix(route): 艾瑞咨询研究报告

* fix loop

* fix typo

* fix typo
2025-11-13 00:15:25 +08:00
Kenny Fong bea6da0dd2 feat(route/futunn): add live, topic and video (#20464)
* add live, topic and video

* fix issues

* Update lib/routes/futunn/topic.ts
2025-11-12 22:26:35 +08:00
Tony 4e247a46ae fix(route/youtube): ensure youtubei is not invoked when using google api (#20469) 2025-11-11 21:54:48 +08:00
Tony dac672d3bb fix(route/youtube): ensure youtubei is not invoked when using google api (#20465) 2025-11-11 15:27:47 +08:00
Tony da32313da8 feat(route): add netflix (#20453)
* feat(route): add netflix

* feat: add research

* fix: remove migrated entries

* fix: clean up

* fix: remove optional chaining for embedLink and title in render function

* fix: remove optional chaining for embedLink

* fix: image url

* fix: remove empty target field in radar configuration
2025-11-09 23:00:07 +08:00
Aicnal Liueic f0f561a894 feat(router): add router of Capital Normal University (#20430) 2025-11-07 18:28:16 +08:00
Ethan Shen 83f7013951 feat(route): add 数字尾巴文章 (#20435) 2025-11-06 00:59:15 +08:00
Tony 13e7784944 fix(route): apple app store (#20427) 2025-11-05 05:11:28 +08:00
Tony 9e3ca7471c fix(route): bilibili ranking (#20426)
* fix(route): bilibili ranking

* fix: split apiUrl for signing

* feat(route): add radar mapping for ranking redirects
2025-11-04 22:47:28 +08:00
Ethan Shen efd864446d feat(route): add 中国炼焦行业协会栏目 (#20418) 2025-11-04 09:04:53 +08:00
Tony d2c310c66c feat(route): add ctinews (#20419)
* feat(route): add ctinews

* fix(handler): adjust publication date timezone for video items

* fix(handler): correct timezone function import for publication date
2025-11-04 01:20:14 +08:00
AhsokaTano26 36eb792493 feat(route): add CQU jwc notification (#19468) 2025-11-03 22:00:35 +08:00
DIYgod 8d560d18f4 fix(route/bilibili/video): update Referer and origin headers for API request 2025-11-03 11:30:10 +08:00
Tony ec0d80d91f fix(route/tophub): fix selectors (#20408)
* fix(route/tophub): fix selectors

* fix(route/tophub): include image in response
2025-11-03 04:18:27 +08:00
Ethan Shen 64399c50d1 feat(route): add 星林社区 (#20403)
* feat(route): add 星林社区

* fix typo
2025-11-02 16:18:31 +08:00
Tony 4e93cf357b fix(route): apple iap (#20404) 2025-11-02 01:30:43 +08:00
HappyZhu99 77b07b3b47 feat(router/aiaa): rebuild rss from official (#20390)
* feature(route/aiaa): new router added

* feature(router/aiaa): rebuild rss from official

* feature(route/aiaa): new to old pudate list with preprint and current issue

* feature(route/aiaa): fix example

* feat(route/aiaa): fix path

* feat(route/aiaa): fix path

* feat(route/aiaa): reuse DataItem and other optimization

* delete empty file

* fix namespace
2025-10-30 14:31:31 +08:00
HappyZhu99 b93555f1ff fix(route/ieee): add full abstract (#20391)
* fix(route/ieee): add full abstract

* fix(route/ieee): get full abstract elegantly

* better performance
2025-10-30 13:57:03 +08:00
Tony 9810bf7618 fix(route/mymusicsheet): update urls (#20395)
* fix(route/mymusicsheet): update urls

* fix(route/mymusicsheet): update isFree logic to handle freeOnly parameter correctly
2025-10-30 05:01:39 +08:00
Tony c33c9b1762 fix(route): add youtube referer (#20396) 2025-10-30 04:56:32 +08:00
Tony e6cef5ad4c fix(middleware): ensure referrerpolicy is set only if not already defined (#20394) 2025-10-30 04:40:05 +08:00
Ethan Shen b9c1f81f9d feat(route): add 数字尾巴鲸闻 (#20384)
* feat(route): add 数字尾巴鲸闻

* fix typo
2025-10-30 00:05:19 +08:00
dependabot[bot] 64a3b06d16 chore(deps): bump ofetch from 1.4.1 to 1.5.0 (#20392)
* chore(deps): bump ofetch from 1.4.1 to 1.5.0

Bumps [ofetch](https://github.com/unjs/ofetch) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/unjs/ofetch/releases)
- [Changelog](https://github.com/unjs/ofetch/blob/v1.5.0/CHANGELOG.md)
- [Commits](https://github.com/unjs/ofetch/compare/v1.4.1...v1.5.0)

---
updated-dependencies:
- dependency-name: ofetch
  dependency-version: 1.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* fix: use `query` instead of deprecated `params`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-29 21:09:00 +08:00
AnitsuriW 283cc9cb93 feat(route): add AzurLane JP news (#20374)
* feat(route): add AzurLane JP news

* fix(route): azurlane jp incorrect namespace

* Update lib/routes/azurlane/news.ts
2025-10-29 19:53:58 +08:00
Stephen ZhouandTony a0c5b08936 fix(route/bilibili): only get subtitle for jsonfeed (#20377)
* fix(route/bilibili): only get subtitle for jsonfeed

* Update lib/middleware/cache.ts

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

* Update lib/middleware/cache.ts

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

---------
2025-10-29 15:32:20 +08:00
Andvari cb1cf517c7 fix(route/zaobao): Adapt to interactive page link (#20383)
* fix(route/zaobao): Adapt to interactive page link

* .
2025-10-29 02:13:56 +08:00
DIYgod 6197f745b4 feat(youtube): customize fetch method for Innertube instance 2025-10-28 21:42:22 +08:00
mslxlandgithub-actions[bot] 49a58764fa fix(route/github): Fix URL link error in events (#20386)
* fix(route/github): Fix url of PR event not links to HTML page

* fix(route/github): Fix repo info be replaced in push event

* style: auto format

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-28 20:14:44 +08:00