RSSHub/lib/routes/openai
chesha1 1c5e4b3702
fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API (#21309)
* fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API

- 移除旧的 getApiUrl 和 parseArticle 函数
- 为 fetchArticles 添加 category 过滤参数
- 提取文章作者信息
- 清理未使用的依赖(got, raw, renderToString)

* fix(route/openai): 使用 parseDate 解析 pubDate 日期字符串

* fix(route/openai): 使用重定向后的 URL 作为文章链接

使用 ofetch.raw() 获取响应,捕获重定向后的最终 URL,
避免输出中包含会被重定向的旧链接。

* fix(route/openai): 补全 URL 尾部斜杠以避免 301 重定向

在请求文章详情前为 URL 补上尾部斜杠,直接请求最终地址,
避免每篇文章都触发一次 301 重定向,减少不必要的 HTTP 请求。
2026-03-06 13:53:14 +08:00
..
chatgpt-atlas.ts feat(route): Add ChatGPT Atlas release notes route (#20969) 2026-01-27 01:48:26 +08:00
chatgpt.ts fix(route/openai): fix chatgpt release notes extraction (#20971) 2026-01-30 00:27:18 +08:00
common.tsx fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API (#21309) 2026-03-06 13:53:14 +08:00
cookbook.ts
namespace.ts
news.ts
research.ts fix(route/openai): 重构 research 路由,使用 RSS 源替代已失效的 TWILL API (#21309) 2026-03-06 13:53:14 +08:00