* 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 结构复制。 |
||
|---|---|---|
| .devcontainer | ||
| .github | ||
| .husky | ||
| .idx | ||
| assets | ||
| eslint-plugins | ||
| lib | ||
| logs | ||
| plugins | ||
| scripts | ||
| .codecov.yml | ||
| .dockerignore | ||
| .editorconfig | ||
| .gitignore | ||
| .npmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| .puppeteerrc.cjs | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
| SECURITY.md | ||
| app.json | ||
| babel.config.js | ||
| docker-compose.yml | ||
| eslint.config.mjs | ||
| fly.toml | ||
| package.json | ||
| pnpm-lock.yaml | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| tsdown-vercel.config.ts | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
README.md
RSSHub
🧡 Everything is RSSible
Introduction
RSSHub is the world's largest RSS network, consisting of over 5,000 global instances.
RSSHub delivers millions of contents aggregated from all kinds of sources, our vibrant open source community is ensuring the deliver of RSSHub's new routes, new features and bug fixes.
Documentation | Telegram Group | Telegram Channel | X (Twitter)
Related Projects
- RSSHub Radar | A browser extension that can help you quickly discover and subscribe to the RSS and RSSHub of current websites.
- RSSBud | RSSHub Radar for iOS platform, designed specifically for mobile ecosystem optimization.
- RSSAid | RSSHub Radar for Android platform built with Flutter.
- DocSearch | Link RSSHub DocSearch into Raycast
Contribute
We welcome all pull requests. Suggestions and feedback are also welcomed here.
Refer to Quick Start
Deployment
Refer to Deployment
Special Thanks
Author
RSSHub © DIYgod, Released under the MIT License.
Authored and maintained by DIYgod with help from contributors (list).
Blog @DIYgod · GitHub @DIYgod · X (Twitter) @DIYgod · Telegram Channel @awesomeDIYgod


