Commit Graph
7 Commits
Author SHA1 Message Date
DIYgod 566f028aaf refactor: migrate browser automation to Playwright (#21901)
* refactor: migrate browser automation to Playwright

* ci: update browser checks for Playwright
2026-05-04 21:16:18 +08:00
MMA 6288f06b97 fix(route/dailypush): use puppeteer (#21160)
* use puppeteer

* fix typo

* fix fetch page one by one

* use deprecated method

* bypass Disallow await inside of loops

* use one browser for the whole route

* bypass Disallow await inside of loops

* use one browser even if marked deprecated by doc

* use Promise.all()

* fix new destory -> destroy
2026-04-04 05:00:09 +08:00
github-actions[bot] a28890a135 style: auto format 2025-11-27 02:55:46 +00:00
chris zheng e45d803691 fix(route/cjlu/yjsy): use Puppeteer to fetch CJLU Graduate School notices after anti-crawler update (#20359)
* fix(route/yjsy): use puppeteer to bypass WAF

* fix: chage waiting-util to get fully loaded page

* fix: remove 'stylesheet' from excludeResourceTypes in yjsy route

* chore: provide default title for notifications in yjsy route

* fix: add HTTP headers for Puppeteer page requests in yjsy route

* fix: replace global ua in config with a static value

* fix: change waitUntil from 'networkidle0' to 'networkidle2'

* fix: set ua with setUserAgent

* fix: ensure user agent is set after HTTP headers in Puppeteer page requests

* fix: add limit parameter to handler for controlling result set size

* fix: update resource type handling in request interception

- use default maxAge managed by env
2025-10-25 00:42:50 +08:00
Tony 4fa33716c1 docs: remove indent (#18247)
* docs: remove indent

* docs: remove more indent

* docs: remove h5 indent

* docs: remove h4 indent

* docs: remove details indent
2025-01-31 22:17:58 +08:00
pseudoyu 0a42f88de7 feat(route): add lang field in route namespace 2024-11-01 22:09:31 +07:00
chris zheng 1309c5083e feat(route): add route for graduacted school of CJLU (China Jiliang University) (#17149)
* feat(namespace): add namespace for CJLU

* feat(route): Add route for graduate school of CJLU

为中国计量大学研究生院添加路由
支持将`教师通知`和`研究生通知`页面转化为 RSS 订阅源

* doc: modify discription of some params

修改参数描述

* fix(radar rule): modify radar rule

修改 radar 规则,以正确提供订阅源

* fix: add exception handling

增加异常处理

* chore: optimize conditional logic

优化判断逻辑

* Update lib/routes/cjlu/yjsy/index.ts

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

* fix(radar rule): list all source choices

在 radar 规则中列出全部的类型
修改行尾符为 LF

* fix(example): correct example of the route

订正路由的案例

---------
2024-10-17 01:07:51 +08:00