更新采集脚本:CHROME_PATH 自定义浏览器支持、tools/yitang-scraper

auto-scrape.mjs 支持 CHROME_PATH 环境变量指定浏览器可执行路径,解决本地 playwright 浏览器版本不匹配问题
This commit is contained in:
admin
2026-09-06 21:46:29 +08:00
parent 45a729619c
commit 7836fd2250
5 changed files with 863 additions and 44 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build:mac": "mkdir -p dist && PLAYWRIGHT_BROWSERS_PATH=dist/browsers npx playwright install chromium && npx pkg auto-scrape.mjs --targets node22-macos-arm64 --output dist/yitang-scraper"
},
"keywords": [],
"author": "",