mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-18 06:17:23 +08:00
4f94d80ec6
* style: auto format * fix(route): baozimh selector (#12790) * feat(route): add 长江大学动物科学学院 (#12795) * style: auto format * fix: 适配网信办页面更新 (#12792) * fix(route): 财新最新文章标题获取兼容火线评论 (#12798) * feat(route): add 火线 (#12784) * feat(route): add 火线 * fix pr * fix pr again * fix pr again and again. * fix(route): 更新联合早报时间获取方法 (#12789) * Update util.js * Update util.js * Update util.js * Update util.js * Update util.js * refactor: use cache.tryGet * Update util.js * Update util.js * Update util.js * fix: zaobao content order fix #10309 --------- Co-authored-by: TonyRL <TonyRL@users.noreply.github.com> * feat(router): add 东华大学学术信息 (#12791) * 增加学术信息 * 代码优化 * 测试性提交 * POST API * POST API * Update lib/v2/dhu/news/xsxx.js * Update lib/v2/dhu/radar.js --------- * style: auto format * fix(route): wxkol link (#12799) * fix(route): wxkol link * fix(core): fix wechat-mp date parsing `var ct = "timestamp"` can appear after `var ct=function()` * fix(route/bilibili): fix liveSearch (#12772) * fix(route/bilibili):fix liveSearch * style: auto format * Update liveSearch.js fix order not deliver to param remove qv_id remove fixed UA --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(route): NMPA get accurate pubdate (#12801) * Update generic.js * Update index.js * fix: nmpa ditch puppeteer --------- * feat(add): SecIN信息安全社区 (#12800) * feat(add): SecIN信息安全社区 * fix lib/v2/sec-in/index.js * fix lib/v2/sec-in/radar.js --------- * fix(route/bilibili): user/followings & user/followers now require login (#12802) * Update router.js change followers/followings params * Update followers.js add login for followers * Update followings.js add login for followings * Update social-media.md update bilibili/followers bilibili/followings docs * Update followers.js Using camelCase. Adding Document link. Cookie check before declaring `uid `. * Update followings.js Using camelCase. Adding Document link. Cookie check before declaring `uid `. * Update maintainer.js * Update README.md Add docs for bilibili/user/followings & bilibili/user/followers * Update router.js Using camelCase * Update social-media.md * style: auto format * Update social-media.md --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(route): copymanga with rate limit and cache (#12805) * feat(route): add 国家广播电视总局电视剧政务平台 (#12804) * feat(route): add 国家广播电视总局电视剧政务平台 * fix: set pool limit to 5 * refactor: remove direct dependent on xml2js (#12817) * fix(route): javdb (#12818) * fix(route): 2048 redirect (#12820) * fix(route): AP News获取方式调整 (#12812) * Resort to DOM parsing. * Update topics.js * Update topics.js * Remove unused code. * Fix cache error. * Remove "Other News". * Update lib/v2/apnews/topics.js --------- * chore(deps): bump pinyin-pro from 3.15.4 to 3.16.0 in /docs (#12825) Bumps [pinyin-pro](https://github.com/zh-lx/pinyin-pro) from 3.15.4 to 3.16.0. - [Release notes](https://github.com/zh-lx/pinyin-pro/releases) - [Changelog](https://github.com/zh-lx/pinyin-pro/blob/main/CHANGELOG.md) - [Commits](https://github.com/zh-lx/pinyin-pro/compare/3.15.4...3.16.0) --- updated-dependencies: - dependency-name: pinyin-pro dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(route): add SecWiki-安全维基 (#12816) * feat(route): add SecWiki-安全维基 * fix pr * fix(route): duplicate entries in the Blizzard feed (#12828) * fix(route): duplicate entries in the Blizzard feed * refactor: migrate to v2 --------- * fix(route): shu 上海大学 (#12803) * fix(route): shu 上海大学 * Optimize code and update documentation - shu/index.js & shu/jwc.js - use @/utils/parse-date to parse date - change "item.description" from text to HTML - change "url.resolve" (deprecated) to "new URL" - change the way of mapping "ctx.params.type" to link - now it accepts more route types - university.md - update doc for new types - router.js - add an alias because the website changed its host * Update lib/routes/universities/shu/index.js * Update lib/routes/universities/shu/jwc.js * Update docs/university.md * refactor: migrate to v2 --------- * fix(route): 星岛日报链接获取方式调整,以去除重复项目 (#12830) * feat(route): add NPR (#12827) * feat(route): add NPR * fix(route/npr): docs * fix(route/npr): remove duplicate images * fix(route/npr): ignore item until audio is available * fix(route/npr): remove duplicate captions * fix(route/npr): caption * fix(route/npr): handle multiple audios * style: auto format * feat(route): add dhu/yjs/news 东华大学研究生院通知 (#12831) * add yjs-news * add yjs news * Update news.js * Update lib/v2/dhu/yjs/news.js * feat: add radar --------- * style: auto format * chore: update deps (#12833) * style: auto format * feat(route): add 纪妖 (#12824) * feat(route): add 纪妖 * fix: use wordpress restapi * update lib/v2/cbaigui/index.js --------- * style: auto format * fix(route): AP News时区调整 (#12842) * feat(route): add 爱思想专题 (#12845) * chore: bring back lint-staged (#12844) * chore: bring back lint-staged * fix: gha label * fix: yml format * fix(route): qidian chapter (#12850) * fix(route): qidian chapter * fix: chapter and forum author refs: https://github.com/DIYgod/RSSHub/pull/414 https://github.com/DIYgod/RSSHub/pull/501 https://github.com/DIYgod/RSSHub/pull/732 * fix(route): agefans (#12851) * feat(route): add V2rayShare (#12843) * add V2rayShare * style: auto format * add V2rayShare * style: auto format * Update docs/other.md * Update lib/v2/v2rayshare/maintainer.js * Update index.js * style: auto format * Update lib/v2/v2rayshare/index.js --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(deps): bump fluxninja/openai-pr-reviewer from 0 to 1 (#12852) * chore(deps): bump fluxninja/openai-pr-reviewer from 0 to 1 Bumps [fluxninja/openai-pr-reviewer](https://github.com/fluxninja/openai-pr-reviewer) from 0 to 1. - [Release notes](https://github.com/fluxninja/openai-pr-reviewer/releases) - [Commits](https://github.com/fluxninja/openai-pr-reviewer/compare/v0...v1) --- updated-dependencies: - dependency-name: fluxninja/openai-pr-reviewer dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: don't relabel for `dependabot[bot]` --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: twitter keyword * feat(route): 支持上海市文旅局审批公告 (#12862) * feat(route): 支持上海市文旅局审批公告 * fix(route): wgj * fix(route): currentUrl * fix(route): search params * feat: increase the timeout time for the fulltext_mode test * feat: support reverse proxy * style: auto format * fix: typo * test: fix empty request error * feat: bypass reverse proxy for requests with cookies * test: fix empty request error and remove node 16 support * fix: reverse proxy fails for some requests * feat: exclude some requests for reverse proxy * feat: expand the scope of retries and set proxy strategy * fix: logger.debug * fix(route/twitter): mixed media incomplete (#12863) * fix(route/twitter): media t.co links not purged (#12864) * fix(route): bloomberg api 404 error (#12834) * fix bloomberg api 404 error * fix(route): AP News时区调整 (#12842) * feat(route): add 爱思想专题 (#12845) * chore: bring back lint-staged (#12844) * chore: bring back lint-staged * fix: gha label * fix: yml format * newsletter ok * forget to remove debug * fix(route): qidian chapter (#12850) * fix(route): qidian chapter * fix: chapter and forum author refs: https://github.com/DIYgod/RSSHub/pull/414 https://github.com/DIYgod/RSSHub/pull/501 https://github.com/DIYgod/RSSHub/pull/732 * fix(route): agefans (#12851) * feat(route): add V2rayShare (#12843) * add V2rayShare * style: auto format * add V2rayShare * style: auto format * Update docs/other.md * Update lib/v2/v2rayshare/maintainer.js * Update index.js * style: auto format * Update lib/v2/v2rayshare/index.js --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(deps): bump fluxninja/openai-pr-reviewer from 0 to 1 (#12852) * chore(deps): bump fluxninja/openai-pr-reviewer from 0 to 1 Bumps [fluxninja/openai-pr-reviewer](https://github.com/fluxninja/openai-pr-reviewer) from 0 to 1. - [Release notes](https://github.com/fluxninja/openai-pr-reviewer/releases) - [Commits](https://github.com/fluxninja/openai-pr-reviewer/compare/v0...v1) --- updated-dependencies: - dependency-name: fluxninja/openai-pr-reviewer dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: don't relabel for `dependabot[bot]` --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: twitter keyword * feat(route): 支持上海市文旅局审批公告 (#12862) * feat(route): 支持上海市文旅局审批公告 * fix(route): wgj * fix(route): currentUrl * fix(route): search params * feat: increase the timeout time for the fulltext_mode test * feat: support reverse proxy * style: auto format * fix: typo * test: fix empty request error * feat: bypass reverse proxy for requests with cookies * test: fix empty request error and remove node 16 support * fix: reverse proxy fails for some requests * feat: exclude some requests for reverse proxy * feat: expand the scope of retries and set proxy strategy * fix: logger.debug * fix(route/twitter): mixed media incomplete (#12863) * fix(route/twitter): media t.co links not purged (#12864) * Add fix for bloomberg newsletter * Fix deepscan error --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Andvari <31068367+dzx-dzx@users.noreply.github.com> Co-authored-by: Ethan Shen <42264778+nczitzk@users.noreply.github.com> Co-authored-by: 钛白 <86600901+77taibai@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: DIYgod <i@diygod.me> Co-authored-by: GideonSenku <39037656+GideonSenku@users.noreply.github.com> Co-authored-by: Rongrong <i@rong.moe> Co-authored-by: Chenfei Xu <chenfxu@ebay.com> * feat(route): 添加 Javdb 的清单获取, 更新了搜索的排序筛选 (#12866) * feat(route): 添加 Javdb 的清单获取, 更新了搜索的排序筛选 * fix: sort router --------- * style: auto format * Fix(route): bloomberg story for newslettes (#12869) * fix minor bugs * fix page sel * reformat * wordaround to fix the deepscan error * fix(route/twitter/user): missing latest tweets (#12870) * fix(route/twitter/user): missing latest tweets Signed-off-by: Rongrong <i@rong.moe> * Update lib/v2/twitter/web-api/twitter-api.js --------- Signed-off-by: Rongrong <i@rong.moe> * feat(route): add 中国海洋大学教务处 (#12872) * feat(route): add 中国海洋大学教务处 * fix: sort entries --------- * feat(route): add 国务院国有资产监督管理委员会 (#12875) * feat: replace the full text content of utgd with description according to site owner's request * feat: support mobile subdomain of jandan in radar rules (#12876) * feat: support mobile subdomain of jandan in radar rules * fix: format * style: auto format * fix(route): 壹蘋新聞網獲取失敗 (#12886) * chore(deps): bump pinyin-pro from 3.16.0 to 3.16.1 in /docs (#12890) Bumps [pinyin-pro](https://github.com/zh-lx/pinyin-pro) from 3.16.0 to 3.16.1. - [Release notes](https://github.com/zh-lx/pinyin-pro/releases) - [Changelog](https://github.com/zh-lx/pinyin-pro/blob/main/CHANGELOG.md) - [Commits](https://github.com/zh-lx/pinyin-pro/compare/3.16.0...3.16.1) --- updated-dependencies: - dependency-name: pinyin-pro 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> * feat(route): add route for bluesky post search ("keyword") (#12893) * add route for bluesky post search ("keyword") * try and fix up routes * Apply suggestions from code review --------- * fix(route): bloomberg: add default handing of news in storymode based on react-renderer (#12878) * fix minor bugs * fix page sel * reformat * wordaround to fix the deepscan error * fix bloomberg when dealing with 404 direct link * fix processVideo in cyclic depend * remove the toggle * feat(route): add 中国海洋大学选课信息教务通知 (#12880) * feat(route): add 中国海洋大学教务处 * fix: sort entries * fix: 修复错误的entries排序 * feat(route): add 中国海洋大学选课信息教务通知 * add selfhost --------- * feat(route): utgd: adjust utgd apiUrl to new (#12894) * Update timeline.js * Update topic.js * fix(route): segment fault user (#12900) * feat(route): add github all issue/pull comments (#12899) * style: auto format * feat(route): shiep (#12907) * fix(route/shiep): fix jsjxy,tyb * feat(route/shiep): add jxfz,nydlzk,rpstec,spgc,ztjy * ci: enable experimental feature in gha * feat(route): add bilibili频道排行榜 (#12906) * feat(route): add bilibili频道排行榜 * fix * fix: typo --------- * fix(route): wxkol (#12909) * docs: fix bilibili wrong parent * fix(route): coolapk item type 13 (#12910) * fix(route): 18comic (#12911) * fix(route): 18comic * feat: allow user provided domain * fix(route/twitter/user): missing all replies (#12912) Signed-off-by: Rongrong <i@rong.moe> * feat(route): add Rawkuma (#12901) * feat(route): add Rawkuma * update lib/v2/rawkuma/manga.js * fix: eslint --------- * feat(route): add 湖南农业大学教务处等通知 (#12913) * feat(route): add 湖南农业大学教务处等通知 * feat(route): add hunau湖南农业大学教务处等通知 * fix: Incomplete multi-character sanitization * fix: sort entries * fix: name using lowerCamelCase * fix: case bugs * fix:中国政府网-最新政策 url变更(#12908) (#12914) * fix: bilibili route /bilibili/user/video/:uid bug (#12920) * fix: radar rule for Telegram channels (#12927) * feat(route/odaily): Odaily 星球日报, 添加指定关键字快讯 (#12926) * feat(route/odaily): Odaily 星球日报, 添加指定关键字快讯 * fix: sort entries * fix: radar rules --------- * fix(route): finviz news (#12857) * fix(route): finviz news * fix: remove unnecessary escape characters * fix: remove cache * fix: add filter of title * fix: filter empty value --------- * feat: 为html/json转化为rss提供通用支持 (#12882) * feat: add rss proxy * docs: 增加文档 * feat: 增加description和自动链接提取 * feat: 增加一些有用的radar * fix: 链接补全 * fix: lint * fix: request config * docs: example encode * fix: rename proxy to transform * refactor: move it under rsshub fix: split radar rules * fix: maintainer build * style: camelCase * docs: fix example --------- * docs: fix table in other.md * chore(deps): bump pinyin-pro from 3.16.1 to 3.16.2 in /docs (#12934) Bumps [pinyin-pro](https://github.com/zh-lx/pinyin-pro) from 3.16.1 to 3.16.2. - [Release notes](https://github.com/zh-lx/pinyin-pro/releases) - [Changelog](https://github.com/zh-lx/pinyin-pro/blob/main/CHANGELOG.md) - [Commits](https://github.com/zh-lx/pinyin-pro/compare/3.16.1...3.16.2) --- updated-dependencies: - dependency-name: pinyin-pro 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> * fix(route): radar rule for xueqiu snb & stock_info (#12935) * feat(route): add 电子工程专辑芯语 (#12939) * feat(route): add 电子工程专辑芯语 * fix radar * style: auto format * fix(route/ximalaya): categoryInfo is undefined (#12940) * fix(route/ximalaya): categoryInfo is undefined * fix(route/ximalaya): categoryInfo is undefined * refactor: migrate to v2 --------- * fix(route): zhihu (#12942) * fix(route): bilibili vsearch (#12943) * feat(route): add dnaindia (#12941) * feat(route): add dnaindia * Update docs/en/traditional-media.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update docs/en/traditional-media.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update docs/en/traditional-media.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update docs/en/traditional-media.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update docs/en/traditional-media.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update lib/v2/dnaindia/radar.js Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update lib/v2/dnaindia/radar.js Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update lib/v2/dnaindia/radar.js Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update<category.js>: change logger and item.category * Update traditional-media.md * Update lib/v2/dnaindia/radar.js Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Update lib/v2/dnaindia/category.js --------- * fix(route): elsevier (#12948) * fix(route): cnki/journals (#12949) * style: auto format * feat(route): Spotify show route (#12945) * Add spotify show route * refactor: sort entries * docs: remove dupe field * Update lib/v2/spotify/show.js --------- * docs: spelling mistake and description update (#12953) * feat(route): add Stock Edge (#12950) * feat(route): add Stock Edge * fix(parseTime): utils * Update docs/en/finance.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * fix(stockedge):minor changes --------- * feat(route): add runtrail (#12963) * feat(route): thehindu topic (#12964) * feat(route): add A List Apart (#12960) * feat(route): add Stock Edge * fix(parseTime): utils * Update docs/en/finance.md Co-authored-by: Tony <TonyRL@users.noreply.github.com> * fix(stockedge):minor changes * feat(route): add 'A list apart' * docs * parse time * use wordpress api * add _embedded * fix * docs: spoiler --------- * feat(route): add Smashing magazine (#12961) * initial commit * feat(route): add Smashing magazine * docs * docs update * add full article * fix docs * docs: spoiler --------- * feat(route): add 早报网 (#12981) * chore(deps-dev): bump @types/koa from 2.13.6 to 2.13.8 (#12972) * chore(deps-dev): bump @types/koa from 2.13.6 to 2.13.8 Bumps [@types/koa](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/koa) from 2.13.6 to 2.13.8. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/koa) --- updated-dependencies: - dependency-name: "@types/koa" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- 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 20.9.0 to 21.0.2 (#12971) * chore(deps): bump puppeteer from 20.9.0 to 21.0.2 Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 20.9.0 to 21.0.2. - [Release notes](https://github.com/puppeteer/puppeteer/releases) - [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json) - [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-v20.9.0...puppeteer-v21.0.2) --- updated-dependencies: - dependency-name: puppeteer dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @sentry/node from 7.59.3 to 7.62.0 (#12973) * chore(deps): bump @sentry/node from 7.59.3 to 7.62.0 Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 7.59.3 to 7.62.0. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/7.59.3...7.62.0) --- updated-dependencies: - dependency-name: "@sentry/node" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump prettier from 3.0.0 to 3.0.1 (#12975) * chore(deps-dev): bump prettier from 3.0.0 to 3.0.1 Bumps [prettier](https://github.com/prettier/prettier) from 3.0.0 to 3.0.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.0.0...3.0.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @notionhq/client from 2.2.8 to 2.2.10 (#12976) * chore(deps): bump @notionhq/client from 2.2.8 to 2.2.10 Bumps [@notionhq/client](https://github.com/makenotion/notion-sdk-js) from 2.2.8 to 2.2.10. - [Release notes](https://github.com/makenotion/notion-sdk-js/releases) - [Commits](https://github.com/makenotion/notion-sdk-js/compare/v2.2.8...v2.2.10) --- updated-dependencies: - dependency-name: "@notionhq/client" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 29.6.1 to 29.6.2 (#12980) * chore(deps-dev): bump jest from 29.6.1 to 29.6.2 Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 29.6.1 to 29.6.2. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/jest/commits/v29.6.2/packages/jest) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump re2 from 1.19.1 to 1.20.1 (#12977) * chore(deps): bump re2 from 1.19.1 to 1.20.1 Bumps [re2](https://github.com/uhop/node-re2) from 1.19.1 to 1.20.1. - [Release notes](https://github.com/uhop/node-re2/releases) - [Commits](https://github.com/uhop/node-re2/compare/1.19.1...1.20.1) --- updated-dependencies: - dependency-name: re2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @sentry/node from 7.62.0 to 7.63.0 (#12986) * chore(deps): bump @sentry/node from 7.62.0 to 7.63.0 Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 7.62.0 to 7.63.0. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/7.62.0...7.63.0) --- updated-dependencies: - dependency-name: "@sentry/node" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(route): 少数派 -- 首页 ignores member articles previews (#12983) * Update index.js for route: sspai Add compatibility for member articles preview. * Update index.js of route sspai Clarify the code * style: auto format * feat(route): add 华理教务处 (#12982) * add ECUST-jwc rss route * fix code * fix review * style: auto format * fix(route): `/bilibili/user/video(article)` Broken for some uploaders (#12992) * Fix /bilibili/user/video Error message: Cannot read properties of undefined (reading 'name') * /bilibili/user/video returns error message if fail to fetch * feat(route): add 东南大学研究生院公告 (#12958) * feat(route): add 东南大学研究生院公告 * feat(route): add 东南大学研究生院公告 * add radar * format scripts * Update lib/v2/seu/radar.js * Update lib/v2/seu/yjs.js * Update lib/v2/seu/yjs.js * fix redundancy * refactor: migrate to v2 * fix: typo --------- * chore(deps): bump googleapis from 122.0.0 to 124.0.0 (#12984) * chore(deps): bump googleapis from 122.0.0 to 124.0.0 Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 122.0.0 to 124.0.0. - [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases) - [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/.release-please-manifest.json) - [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v122.0.0...googleapis-v124.0.0) --- updated-dependencies: - dependency-name: googleapis dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump eslint from 8.45.0 to 8.46.0 (#12974) * chore(deps-dev): bump eslint from 8.45.0 to 8.46.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.45.0 to 8.46.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.45.0...v8.46.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install * style: remove --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump eslint-config-prettier from 8.8.0 to 9.0.0 (#12988) * chore(deps-dev): bump eslint-config-prettier from 8.8.0 to 9.0.0 Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 8.8.0 to 9.0.0. - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-config-prettier/compare/v8.8.0...v9.0.0) --- updated-dependencies: - dependency-name: eslint-config-prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * refactor: replace re2 with re2-wasm (#12998) * refactor: replace re2 with re2-wasm * refactor: remove migrated routes * ci: remove foresight https://github.com/runforesight Foresight is no longer in service * fix: add back removed wasm chore: bump base OS image * fix(route): yuque (#13001) * chore(deps): bump twitter-api-v2 from 1.15.0 to 1.15.1 (#12987) * chore(deps): bump twitter-api-v2 from 1.15.0 to 1.15.1 Bumps [twitter-api-v2](https://github.com/plhery/node-twitter-api-v2) from 1.15.0 to 1.15.1. - [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.15.0...1.15.1) --- 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> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump lru-cache from 10.0.0 to 10.0.1 (#12985) * chore(deps): bump lru-cache from 10.0.0 to 10.0.1 Bumps [lru-cache](https://github.com/isaacs/node-lru-cache) from 10.0.0 to 10.0.1. - [Changelog](https://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md) - [Commits](https://github.com/isaacs/node-lru-cache/compare/v10.0.0...v10.0.1) --- updated-dependencies: - dependency-name: lru-cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @vercel/nft from 0.22.6 to 0.23.0 (#12979) * chore(deps-dev): bump @vercel/nft from 0.22.6 to 0.23.0 Bumps [@vercel/nft](https://github.com/vercel/nft) from 0.22.6 to 0.23.0. - [Release notes](https://github.com/vercel/nft/releases) - [Commits](https://github.com/vercel/nft/compare/0.22.6...0.23.0) --- updated-dependencies: - dependency-name: "@vercel/nft" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build: fix vercel build (#13006) * chore(deps-dev): bump eslint from 8.46.0 to 8.47.0 (#13002) * chore(deps-dev): bump eslint from 8.46.0 to 8.47.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.46.0 to 8.47.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.46.0...v8.47.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(route): /bilibili/user/dynamic add showEmoji parameter (#13009) * chore(deps): bump puppeteer from 21.0.2 to 21.0.3 (#13003) * chore(deps): bump puppeteer from 21.0.2 to 21.0.3 Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 21.0.2 to 21.0.3. - [Release notes](https://github.com/puppeteer/puppeteer/releases) - [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json) - [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-v21.0.2...puppeteer-v21.0.3) --- updated-dependencies: - dependency-name: puppeteer dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: TonyRL <TonyRL@users.noreply.github.com> * docs: update readme * docs: update image size * feat(route): add Grist (#12991) * initial commit * radar and maintainer updates * add route grist * add grist changes * Update docs/en/new-media.md * Update lib/v2/grist/featured.js * get featured article via APi * docs: spoiler --------- * feat(route): caixin weekly (#13017) * docs: fix caixin weekly * fix(route): Update bilibili maintainer.js (#13021) * feat(route): add Finology (#12993) * feat(route): add Finology * Update radar.js * Update docs/en/finance.md * Update lib/v2/finology/bullets.js * Update lib/v2/finology/mostViewed.js * Update lib/v2/finology/bullets.js * Update docs/en/finance.md * Update lib/v2/finology/tag.js * Update lib/v2/finology/mostViewed.js * Update lib/v2/finology/tag.js * add the suggested changes * use promise.allSettled * clean up * docs: add spoiler --------- * fix(route): Fix bloomberg story by using the latest story id api (#13013) * fix minor bugs * fix page sel * reformat * wordaround to fix the deepscan error * fix bloomberg when dealing with 404 direct link * fix processVideo in cyclic depend * remove the toggle * change into new story api * reorg the files * use prop not instead of lodash * remove useless exports * use parseVideo in diff files * refactor to remove deps * add try/catch for renderer page * use story api for newsletters * update features example * change audio * add tabularData --------- Co-authored-by: Chenfei Xu <chenfxu@ebay.com> * feat(route): Science.org Blogs (#13016) * initial commit * clean up code, run fmt, add docs * fix caching Co-authored-by: Tony <TonyRL@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Tony <TonyRL@users.noreply.github.com> * remove regex * Add config import * docs: cn docs * docs: better link --------- * chore: try fix arm64 build * chore(deps): bump @vuepress/plugin-pwa from 1.9.9 to 1.9.10 in /docs (#13033) Bumps [@vuepress/plugin-pwa](https://github.com/vuejs/vuepress/tree/HEAD/packages/@vuepress/plugin-pwa) from 1.9.9 to 1.9.10. - [Release notes](https://github.com/vuejs/vuepress/releases) - [Changelog](https://github.com/vuejs/vuepress/blob/master/CHANGELOG.md) - [Commits](https://github.com/vuejs/vuepress/commits/v1.9.10/packages/@vuepress/plugin-pwa) --- updated-dependencies: - dependency-name: "@vuepress/plugin-pwa" 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): bump vuepress from 1.9.9 to 1.9.10 in /docs (#13034) Bumps [vuepress](https://github.com/vuejs/vuepress/tree/HEAD/packages/vuepress) from 1.9.9 to 1.9.10. - [Release notes](https://github.com/vuejs/vuepress/releases) - [Changelog](https://github.com/vuejs/vuepress/blob/master/CHANGELOG.md) - [Commits](https://github.com/vuejs/vuepress/commits/v1.9.10/packages/vuepress) --- updated-dependencies: - dependency-name: vuepress 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): bump @vuepress/plugin-google-analytics in /docs (#13036) Bumps [@vuepress/plugin-google-analytics](https://github.com/vuejs/vuepress/tree/HEAD/packages/@vuepress/plugin-google-analytics) from 1.9.9 to 1.9.10. - [Release notes](https://github.com/vuejs/vuepress/releases) - [Changelog](https://github.com/vuejs/vuepress/blob/master/CHANGELOG.md) - [Commits](https://github.com/vuejs/vuepress/commits/v1.9.10/packages/@vuepress/plugin-google-analytics) --- updated-dependencies: - dependency-name: "@vuepress/plugin-google-analytics" 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): bump @vuepress/shared-utils from 1.9.9 to 1.9.10 in /docs (#13037) Bumps [@vuepress/shared-utils](https://github.com/vuejs/vuepress/tree/HEAD/packages/@vuepress/shared-utils) from 1.9.9 to 1.9.10. - [Release notes](https://github.com/vuejs/vuepress/releases) - [Changelog](https://github.com/vuejs/vuepress/blob/master/CHANGELOG.md) - [Commits](https://github.com/vuejs/vuepress/commits/v1.9.10/packages/@vuepress/shared-utils) --- updated-dependencies: - dependency-name: "@vuepress/shared-utils" 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): bump @vuepress/plugin-back-to-top in /docs (#13035) Bumps [@vuepress/plugin-back-to-top](https://github.com/vuejs/vuepress/tree/HEAD/packages/@vuepress/plugin-back-to-top) from 1.9.9 to 1.9.10. - [Release notes](https://github.com/vuejs/vuepress/releases) - [Changelog](https://github.com/vuejs/vuepress/blob/master/CHANGELOG.md) - [Commits](https://github.com/vuejs/vuepress/commits/v1.9.10/packages/@vuepress/plugin-back-to-top) --- updated-dependencies: - dependency-name: "@vuepress/plugin-back-to-top" 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> * feat: add docusaurus website (#13039) * fix: github workflows * feat(route): `/zhihu/daily/section/:sectionId` add pubDate (#13020) * docs: clear service worker * docs: fix editUrl * docs: fix i18n * fix(radar): stockedge sub-domain (#13038) * docs: compatible with the old logo link * docs: add umami * docs: add back meilisearch (#13041) * docs: add back meilisearch * fix: remove unused variable * Revert "fix: remove unused variable" This reverts commit52bec57a1e. What is React * fix(route): 更换财新最新文章获取方式 (#13023) * 更换财新最新文章获取方式。 * Update latest.js * Update latest.js * Update latest.js * style: auto format * docs: recover DocSidebarItem * docs: fix new docs link * fix(route): Foresight News (#13026) * fix(route): Foresight News * fix docs * fix tags * fix index items --------- * fix: rsshub routes update * fix: rsshub routes update * fix(route): Aqara News (#12921) * fix(route): Aqara News * feat(route): add Aqara category & tag * fix: crlf to lf * fix broken images * fix url --------- * chore(deps): bump @notionhq/client from 2.2.10 to 2.2.11 (#13030) * chore(deps): bump @notionhq/client from 2.2.10 to 2.2.11 Bumps [@notionhq/client](https://github.com/makenotion/notion-sdk-js) from 2.2.10 to 2.2.11. - [Release notes](https://github.com/makenotion/notion-sdk-js/releases) - [Commits](https://github.com/makenotion/notion-sdk-js/compare/v2.2.10...v2.2.11) --- updated-dependencies: - dependency-name: "@notionhq/client" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump prettier from 3.0.1 to 3.0.2 (#13042) * chore(deps-dev): bump prettier from 3.0.1 to 3.0.2 Bumps [prettier](https://github.com/prettier/prettier) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.0.1...3.0.2) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @sentry/node from 7.63.0 to 7.64.0 (#13032) * chore(deps): bump @sentry/node from 7.63.0 to 7.64.0 Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 7.63.0 to 7.64.0. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-javascript/compare/7.63.0...7.64.0) --- updated-dependencies: - dependency-name: "@sentry/node" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump googleapis from 124.0.0 to 125.0.0 (#13043) * chore(deps): bump googleapis from 124.0.0 to 125.0.0 Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 124.0.0 to 125.0.0. - [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases) - [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/.release-please-manifest.json) - [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v124.0.0...googleapis-v125.0.0) --- updated-dependencies: - dependency-name: googleapis dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump lint-staged from 13.2.3 to 14.0.0 (#13031) * chore(deps-dev): bump lint-staged from 13.2.3 to 14.0.0 Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.2.3 to 14.0.0. - [Release notes](https://github.com/okonet/lint-staged/releases) - [Commits](https://github.com/okonet/lint-staged/compare/v13.2.3...v14.0.0) --- updated-dependencies: - dependency-name: lint-staged dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @tsconfig/docusaurus in /website (#13047) Bumps [@tsconfig/docusaurus](https://github.com/tsconfig/bases/tree/HEAD/bases) from 1.0.5 to 2.0.0. - [Commits](https://github.com/tsconfig/bases/commits/HEAD/bases) --- updated-dependencies: - dependency-name: "@tsconfig/docusaurus" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump pinyin-pro from 3.16.2 to 3.16.3 in /website (#13059) Bumps [pinyin-pro](https://github.com/zh-lx/pinyin-pro) from 3.16.2 to 3.16.3. - [Release notes](https://github.com/zh-lx/pinyin-pro/releases) - [Changelog](https://github.com/zh-lx/pinyin-pro/blob/main/CHANGELOG.md) - [Commits](https://github.com/zh-lx/pinyin-pro/commits) --- updated-dependencies: - dependency-name: pinyin-pro 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> * docs: redirect old docs urls (#13060) * docs: redirect old docs urls * fix: fix start en docs script * docs: fix redirects in netlify * docs: remove redirect for non matching /en/* to /en/404 This proceeds before docusaurus' redirects which breaks /en/category.html -> /en/category -> /en/routes/category * feat(route): IGDB - 学术活动 (#13027) * feat(route): IGDB - 学术活动 * fix: sort router & use https * fix: sort radar --------- * chore(deps-dev): bump @vercel/nft from 0.23.0 to 0.23.1 (#13029) * chore(deps-dev): bump @vercel/nft from 0.23.0 to 0.23.1 Bumps [@vercel/nft](https://github.com/vercel/nft) from 0.23.0 to 0.23.1. - [Release notes](https://github.com/vercel/nft/releases) - [Commits](https://github.com/vercel/nft/compare/0.23.0...0.23.1) --- updated-dependencies: - dependency-name: "@vercel/nft" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * docs: pwa (#13064) * chore(deps-dev): bump nock from 13.3.2 to 13.3.3 (#13058) * chore(deps-dev): bump nock from 13.3.2 to 13.3.3 Bumps [nock](https://github.com/nock/nock) from 13.3.2 to 13.3.3. - [Release notes](https://github.com/nock/nock/releases) - [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md) - [Commits](https://github.com/nock/nock/compare/v13.3.2...v13.3.3) --- updated-dependencies: - dependency-name: nock dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(route): fix `/bilibili/followings/dynamic` Cannot convert object to primitive value (#13065) * feat(route): tiktok iframe (#13066) * chore: add warp in docker-compose * feat(router): 增加 xiaote.com 论坛路由 (#13062) * feat: 增加 xiaote.com 论坛路由 * feat: add radar.js * feat: format code * bugfix: radar error * fix: all marge issuse * feat(route): add descriptions for nwafu (#13067) * feat(route): add descriptions for nwafu docs: update the docs scriptsformat scripts refactor: migrate to v2 * Create radar.js * Update radar.js * feat(route): fix the route * Update website/docs/routes/university.md * Update website/docs/routes/university.md * Update all.js * Update all.js * Update lib/v2/nwafu/all.js * Update all.js --------- * style: auto format * feat(parameter): use re2js instead (#13072) * feat(parameter): use re2js instead * fix: add back comment * chore(deps): bump clsx from 1.2.1 to 2.0.0 in /website (#13045) Bumps [clsx](https://github.com/lukeed/clsx) from 1.2.1 to 2.0.0. - [Release notes](https://github.com/lukeed/clsx/releases) - [Commits](https://github.com/lukeed/clsx/compare/v1.2.1...v2.0.0) --- updated-dependencies: - dependency-name: clsx dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump prism-react-renderer from 1.3.5 to 2.0.6 in /website (#13046) * chore(deps): bump prism-react-renderer from 1.3.5 to 2.0.6 in /website Bumps [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) from 1.3.5 to 2.0.6. - [Release notes](https://github.com/FormidableLabs/prism-react-renderer/releases) - [Commits](https://github.com/FormidableLabs/prism-react-renderer/compare/v1.3.5...prism-react-renderer@2.0.6) --- updated-dependencies: - dependency-name: prism-react-renderer dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: `prism-react-renderer` v2 changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump typescript from 4.7.4 to 5.1.6 in /website (#13044) * chore(deps-dev): bump typescript from 4.7.4 to 5.1.6 in /website Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 5.1.6. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v5.1.6) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: use group updates --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(route): fix /baidu/tieba/forum time (#13077) * feat(route): add xhu (#13055) * feat(route): add xhu * add xhu doc * Remove unnecessary URL parameter * Store xhu cookie in cache * Add xhu to radar.js * Update website/docs/routes/social-media.md --------- * style: auto format * fix(route): update v2/scitation to v2/aip (#12955) * fix(route): scitation/journal * fix(docs): scitation/journal * fix(docs): (en) scitation/journal * chores * fix(radar): scitation/journal * fix(radar): scitation/journal * fix(radar): scitation/journal * style: auto format * fix(route): mv scitation to aip * fix(route): v2/AIP chores * fix(docs): v2/aip docs * fix(docs): chores: jounus/advanced/advanced-feed * fix(docs): update en docs * fix(docs): not right close the <RouteEn> * fix(docs): correct some mistake * Update lib/v2/aip/radar.js --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(deps): bump googleapis from 125.0.0 to 126.0.0 (#13073) * chore(deps): bump googleapis from 125.0.0 to 126.0.0 Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 125.0.0 to 126.0.0. - [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases) - [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/release-please-config.json) - [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v125.0.0...googleapis-v126.0.0) --- updated-dependencies: - dependency-name: googleapis dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- 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 21.0.3 to 21.1.0 (#13074) * chore(deps): bump puppeteer from 21.0.3 to 21.1.0 Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 21.0.3 to 21.1.0. - [Release notes](https://github.com/puppeteer/puppeteer/releases) - [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json) - [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-v21.0.3...puppeteer-v21.1.0) --- updated-dependencies: - dependency-name: puppeteer dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(route): 2048 (#13079) * fix(route): 2048 * fix: codeql * fix: empty link * fix: url condition * feat(route): add more routes for nwafu (#13076) * feat(route): add more routes for nwafu * update all.js * Update all.js * style: auto format * fix(route): Fix bloomberg story when parsing react rendered page and videos missing id (#13082) * fix minor bugs * fix page sel * reformat * wordaround to fix the deepscan error * fix bloomberg when dealing with 404 direct link * fix processVideo in cyclic depend * remove the toggle * change into new story api * reorg the files * use prop not instead of lodash * remove useless exports * use parseVideo in diff files * refactor to remove deps * add try/catch for renderer page * use story api for newsletters * update features example * change audio * add tabularData * fix bug on bloomberg react page --------- Co-authored-by: Chenfei Xu <chenfxu@ebay.com> * docs: documentation prioritizes English and maintains only one route list (#13075) * chore: fix format.js * docs: move the Netlify config to the right place * Revert "docs: move the Netlify config to the right place" This reverts commit3b588021b5. * docs: try language redirection * docs: try language redirection * fix: miniflux optional parameter * docs: i18nable component (#13084) * docs: try language redirection * docs: update README * fix: pixiv bypassCdn default value * docs: i18n sidebar, fix code block (#13085) * docs: i18n sidebar * docs: `code-group` to `tabs` * docs: admonitions use default title * docs: fix route * docs: fix build * docs: fix add-docs admonitions * docs: unwrap `details` wrapped content * docs: mention no i18n switch in dev mode * docs: fix add-docs rendering * docs: fix typo * chore: fix format * feat(route): add xhu collection, question and zhuanlan (#13087) * feat(route): add /zhihu/xhu/question * feat(route): add /zhihu/xhu/zhuanlan * feat(route): add /zhihu/xhu/collection * feat(route): add dlnews (#12997) * feat(route):add DLNEWS * clean up * use embedded JSON * fix: docusaurus style md * add description.art and rate limit * increase the concurency * fix: fix radar docs link * docs: move to finance --------- * chore: update meilisearch config `p`: general content `.params`: route params `table`: route params table `code`: env * feat(route): 百度贴吧按帖子创建时间排序 (#13102) * feat(route): add tieba sort by created time * Put /tieba/forum/good before /tieba/forum * Add parse for creation dates of format YYYY-MM * fix(route): NEW字幕组 (#12951) * fix(route): NEW字幕组 * add comments * fix: remove unnecessary await * fix: remove unnecessary async * fix: remove unnecessary async * fix: add cache for first response * fix typo * fix: new cache key * docs: use default title --------- * chore(deps-dev): bump lint-staged from 14.0.0 to 14.0.1 (#13094) * chore(deps-dev): bump lint-staged from 14.0.0 to 14.0.1 Bumps [lint-staged](https://github.com/okonet/lint-staged) from 14.0.0 to 14.0.1. - [Release notes](https://github.com/okonet/lint-staged/releases) - [Commits](https://github.com/okonet/lint-staged/compare/v14.0.0...v14.0.1) --- updated-dependencies: - dependency-name: lint-staged dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump chrono-node from 2.6.4 to 2.6.5 (#13096) * chore(deps): bump chrono-node from 2.6.4 to 2.6.5 Bumps [chrono-node](https://github.com/wanasit/chrono) from 2.6.4 to 2.6.5. - [Release notes](https://github.com/wanasit/chrono/releases) - [Commits](https://github.com/wanasit/chrono/compare/v2.6.4...v2.6.5) --- updated-dependencies: - dependency-name: chrono-node dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump jest from 29.6.2 to 29.6.3 (#13095) * chore(deps-dev): bump jest from 29.6.2 to 29.6.3 Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) from 29.6.2 to 29.6.3. - [Release notes](https://github.com/jestjs/jest/releases) - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jestjs/jest/commits/v29.6.3/packages/jest) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump re2js from 0.3.2 to 0.3.3 (#13105) * chore(deps): bump re2js from 0.3.2 to 0.3.3 Bumps [re2js](https://github.com/le0pard/re2js) from 0.3.2 to 0.3.3. - [Release notes](https://github.com/le0pard/re2js/releases) - [Commits](https://github.com/le0pard/re2js/compare/0.3.2...0.3.3) --- updated-dependencies: - dependency-name: re2js dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump eslint-plugin-n from 16.0.1 to 16.0.2 (#13106) * chore(deps-dev): bump eslint-plugin-n from 16.0.1 to 16.0.2 Bumps [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) from 16.0.1 to 16.0.2. - [Release notes](https://github.com/eslint-community/eslint-plugin-n/releases) - [Commits](https://github.com/eslint-community/eslint-plugin-n/compare/16.0.1...16.0.2) --- updated-dependencies: - dependency-name: eslint-plugin-n dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(route): add tophub cookie (#13104) * fix(route): add tophub cookie * add docs for tophub cookie * Update docs * docs: reorder env * feat(route): Start on support for generic discourse forums. (#13063) * Start on support for generic discourse forums. * Add doc. * Update doc. * Add exception. * Update doc. * Update bbs.md * test: add discourse config * docs: fix typo * fix: guard condition --------- * fix(route): leetcode articles (#13108) * refactor(route): move tophub to v2 * fix(route): 晚点报道 (#13092) * fix(route): 晚点报道 * fix: add programa * fix typo * update lib/v2/latepost/index.js --------- * fix(route): 南京大学研究生院 (#13116) * feat(route): Add Discourse notifications support (#13114) * Adding discourse notifications support. * Refactor & add doc. * feat(route): add router YouTube Live (#13110) * feat(route): add router YouTube Live * add docs * Insert new entries in alphabetical order. --------- * chore(deps-dev): bump typescript from 5.1.6 to 5.2.2 in /website (#13119) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.6 to 5.2.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/commits) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(route): fix the title error for the YouTube Live (#13120) * feat(route): add router YouTube Live * add docs * Insert new entries in alphabetical order. * Fix the error in the title. --------- * feat(route): Bilibili UP主动态 参数格式更新 & 增加显示专栏全文参数 (#13109) * feat(route): /bilibili/user(followings)/dynamic change to routeParams * feat(route): Add displayArticle parameter * small change of uid * Original link can click to jump * chore(deps-dev): bump jest from 29.6.3 to 29.6.4 (#13118) * chore(deps-dev): bump jest from 29.6.3 to 29.6.4 Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) from 29.6.3 to 29.6.4. - [Release notes](https://github.com/jestjs/jest/releases) - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jestjs/jest/commits/v29.6.4/packages/jest) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(route): bilibili 动态中的视频链接默认改为 BV 号并增加配置参数;修改 专栏显示全文 的参数来源 (#13122) * feat(route): 添加 百度股市通 * fix: 修改 百度股市通 路径 * docs: 添加 百度股市通 文档 * feat: 添加 radar 支持 * fix: 按字母顺序插入新路由 * feat(route): 新增 腾讯新闻 - 新型冠状病毒肺炎疫情实时追踪 * fix: 优化 腾讯新闻 - 新型冠状病毒肺炎疫情实时追踪 的标题 * fix: 修复 腾讯新闻 - 新型冠状病毒肺炎疫情实时追踪 部分情况下的非空判断 * fix: 修复 地区名称标题的问题 * fix: 腾讯新闻 - 新型冠状病毒肺炎疫情实时追踪 的 guid 增加 pubDate * fix: 修复 腾讯新闻 - 新型冠状病毒肺炎疫情实时追踪 guid 中添加 pubDate * fix: 修改 腾讯新闻 - 新型冠状病毒肺炎疫情实时追踪 的 title * feat(route): 修复 HelloGitHub 的 月刊 路由 * fix: remove guid * feat(route): 新增 bilibili 热搜 * feat(route): 完善 bilibili热搜 的 radar * fix: 优化 bilibili热搜 list 的非空判断 * fix: 修复 bilibili热搜路由失效 fix #12632 * fix(route): 修复 bilibili热搜路由 的校验逻辑计算 * fix: 优化 bilibili/utils 的 addVerifyInfo 逻辑 * feat(route): bilibili 动态中的视频链接默认改为 BV 号并增加配置参数;修改 专栏显示全文 的参数来源 * fix(route): 修复 fulltext 来源错误;修复 addVerifyInfo 逻辑错误 * fix(route): 移除不必要的参数 * chore(deps-dev): bump eslint from 8.47.0 to 8.48.0 (#13124) * chore(deps-dev): bump eslint from 8.47.0 to 8.48.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.47.0 to 8.48.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.47.0...v8.48.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.no * chore(deps): bump googleapis from 126.0.0 to 126.0.1 (#13125) * chore(deps): bump googleapis from 126.0.0 to 126.0.1 Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 126.0.0 to 126.0.1. - [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases) - [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/release-please-config.json) - [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v126.0.0...googleapis-v126.0.1) --- updated-dependencies: - dependency-name: googleapis dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @notionhq/client from 2.2.11 to 2.2.12 (#13126) * chore(deps): bump @notionhq/client from 2.2.11 to 2.2.12 Bumps [@notionhq/client](https://github.com/makenotion/notion-sdk-js) from 2.2.11 to 2.2.12. - [Release notes](https://github.com/makenotion/notion-sdk-js/releases) - [Commits](https://github.com/makenotion/notion-sdk-js/compare/v2.2.11...v2.2.12) --- updated-dependencies: - dependency-name: "@notionhq/client" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(route): add Royal Society of Chemistry Journal * fix docs * fix typo * fix typo * apply suggestions from code review Co-authored-by: Tony <TonyRL@users.noreply.github.com> * docs: fix docs --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Rongrong <i@rong.moe> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: drgnchan <40224023+drgnchan@users.noreply.github.com> Co-authored-by: Andvari <31068367+dzx-dzx@users.noreply.github.com> Co-authored-by: p7e4 <44750087+p7e4@users.noreply.github.com> Co-authored-by: fox2049 <60031998+fox2049@users.noreply.github.com> Co-authored-by: qixingchen <4182240+Qixingchen@users.noreply.github.com> Co-authored-by: terrytw <24227628+terrytw@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: miles <miles@bung.cc> Co-authored-by: 东风有意 <48650471+CreepingG@users.noreply.github.com> Co-authored-by: BenYip <yebenmy@gmail.com> Co-authored-by: 钛白 <86600901+77taibai@users.noreply.github.com> Co-authored-by: DIYgod <i@diygod.me> Co-authored-by: GideonSenku <39037656+GideonSenku@users.noreply.github.com> Co-authored-by: Rongrong <i@rong.moe> Co-authored-by: Felix Hsu <xuchenfei@gmail.com> Co-authored-by: Chenfei Xu <chenfxu@ebay.com> Co-authored-by: dddepg <52941559+dddepg@users.noreply.github.com> Co-authored-by: 白 <39430235+3401797899@users.noreply.github.com> Co-authored-by: cayZ <13341339+Cay-Zhang@users.noreply.github.com> Co-authored-by: Markus Unterwaditzer <markus-github@unterwaditzer.net> Co-authored-by: 沨沄极客 <58888890+yarin-zhang@users.noreply.github.com> Co-authored-by: Arne Keller <2012gdwu+github@posteo.de> Co-authored-by: SUEPbot <114787369+SUEPbot@users.noreply.github.com> Co-authored-by: 甜檸seril <45784494+lcandy2@users.noreply.github.com> Co-authored-by: HearingSmile <41669762+bigcoder84@users.noreply.github.com> Co-authored-by: snowraincloud <SNOW_LINE@hotmail.com> Co-authored-by: tmr <32825326+ttttmr@users.noreply.github.com> Co-authored-by: sirius60111 <sirius60111@users.noreply.github.com> Co-authored-by: Li Xuetao <lixuetaoleo@foxmail.com> Co-authored-by: Nishant Singh <57475999+Rjnishant530@users.noreply.github.com> Co-authored-by: Derek <mg.wang.now@gmail.com> Co-authored-by: Caio Ramos <caioramos97@gmail.com> Co-authored-by: CpDong <93034081+Bubbu0129@users.noreply.github.com> Co-authored-by: Absolutex <88281489+lxl66566@users.noreply.github.com> Co-authored-by: JimenezLi <75196426+JimenezLi@users.noreply.github.com> Co-authored-by: PyangWU <79191573+Denkiyohou@users.noreply.github.com> Co-authored-by: Tom <thomas.hodson@ecmwf.int> Co-authored-by: panyq357 <50689054+panyq357@users.noreply.github.com> Co-authored-by: simon <WxSimon@users.noreply.github.com> Co-authored-by: karinido <37145311+karinido@users.noreply.github.com> Co-authored-by: Joey Chai <crazyczy@live.cn> Co-authored-by: 清晨的雾 <45256257+ret-1@users.noreply.github.com> Co-authored-by: Sussurr <93532398+sussurr127@users.noreply.github.com> Co-authored-by: CaoMeiYouRen <40430746+CaoMeiYouRen@users.noreply.github.com>
107 lines
4.3 KiB
JavaScript
107 lines
4.3 KiB
JavaScript
const got = require('@/utils/got');
|
|
const cheerio = require('cheerio');
|
|
const timezone = require('@/utils/timezone');
|
|
const { parseDate } = require('@/utils/parse-date');
|
|
const { art } = require('@/utils/render');
|
|
const path = require('path');
|
|
|
|
module.exports = async (ctx) => {
|
|
const { id, category = 'allrecentarticles' } = ctx.params;
|
|
const limit = ctx.query.limit ? parseInt(ctx.query.limit, 10) : 50;
|
|
|
|
const rootUrl = 'https://pubs.rsc.org';
|
|
const currentUrl = new URL(`en/journals/journalissues/${id}#!recentarticles`, rootUrl).href;
|
|
const apiUrl = new URL('en/journals/getrecentarticles', rootUrl).href;
|
|
|
|
const { data: response } = await got.post(apiUrl, {
|
|
form: {
|
|
name: id,
|
|
pageno: 1,
|
|
iscontentavailable: true,
|
|
category,
|
|
},
|
|
});
|
|
|
|
let $ = cheerio.load(response);
|
|
|
|
$('div.capsule__article-image').each(function () {
|
|
$(this).replaceWith(
|
|
art(path.join(__dirname, 'templates/image.art'), {
|
|
image: $(this).find('img').prop('data-original'),
|
|
})
|
|
);
|
|
});
|
|
|
|
let items = $('div.capsule--article')
|
|
.slice(0, limit)
|
|
.toArray()
|
|
.map((item) => {
|
|
item = $(item);
|
|
|
|
const authors = item.find('div.article__authors').text().trim();
|
|
const doi = item.find('div.text--small span a').text().split(/org\//).pop();
|
|
|
|
const isOpenAccess = !!item.find('span.capsule__context img.ver-t').prop('alt');
|
|
const isManuscript = !!item.find('span.capsule__context span').text();
|
|
|
|
const enclosureUrl = new URL(item.find('div.capsule__action--buttons a').prop('href').split('?').pop(), rootUrl).href;
|
|
|
|
return {
|
|
title: item.find('h3.capsule__title').text(),
|
|
link: new URL(item.find('a.capsule__action').prop('href'), rootUrl).href,
|
|
description: item.find('div.capsule__column-wrapper').html(),
|
|
author: authors,
|
|
category: [item.find('span.capsule__context').text().trim(), ...authors.split(/,\s|and\s/), isOpenAccess || isManuscript],
|
|
guid: `rsc-${doi}`,
|
|
pubDate: timezone(parseDate(item.find('div.text--small span.block').text().split(/on\s/).pop(), 'DD MMM YYYY'), +1),
|
|
enclosure_url: enclosureUrl,
|
|
enclosure_type: enclosureUrl ? 'application/pdf' : undefined,
|
|
doi,
|
|
};
|
|
});
|
|
|
|
items = await Promise.all(
|
|
items.map((item) =>
|
|
ctx.cache.tryGet(item.guid, async () => {
|
|
if (item.category.pop()) {
|
|
const { data: detailResponse } = await got(item.link.replace(/\/articlelanding\//, '/articlehtml/'));
|
|
|
|
const content = cheerio.load(detailResponse);
|
|
|
|
content('#pnlArticleAccess, #pnlArticleContent').remove();
|
|
content('div.abstract, div.article-abstract__heading').prevAll().remove();
|
|
|
|
item.title = content('meta[name="DC.title"]').prop('content');
|
|
item.description = content('#wrapper, article.article-control').html();
|
|
item.pubDate = timezone(parseDate(content('meta[name="citation_online_date"]').prop('content'), 'YYYY/MM/DD'), +1);
|
|
item.enclosure_url = content('meta[name="citation_pdf_url"]').prop('content');
|
|
item.enclosure_type = item.enclosure_url ? 'application/pdf' : undefined;
|
|
item.doi = content('meta[name="DC.Identifier"]').prop('content');
|
|
}
|
|
|
|
return item;
|
|
})
|
|
)
|
|
);
|
|
|
|
const { data: detailResponse } = await got(currentUrl);
|
|
|
|
$ = cheerio.load(detailResponse);
|
|
|
|
const icon = new URL($('link[rel="apple-touch-icon"]').prop('href'), rootUrl).href;
|
|
|
|
ctx.state.data = {
|
|
item: items,
|
|
title: $('meta[name="citation_title"]').prop('content'),
|
|
link: currentUrl,
|
|
description: $('meta[property="og:description"]').prop('content'),
|
|
language: 'en',
|
|
image: new URL($('div.page-head__cell--image span img').prop('src'), rootUrl).href,
|
|
icon,
|
|
logo: icon,
|
|
subtitle: $('title').text(),
|
|
author: $('meta[name="citation_journal_abbrev"]').prop('content'),
|
|
allowEmpty: true,
|
|
};
|
|
};
|