优化文档采集工具
- 输出文件名添加 YYMMDD_ 日期前缀,便于按时间排序 - 改用 storageState 完整保存登录态(cookies + localStorage),大幅减少重复扫码 - 增加 TOKEN 轮询宽限期,避免 SPA 异步加载时误判未登录 - 更新 README 文档记录
This commit is contained in:
+2
-1
@@ -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": "",
|
||||
|
||||
Reference in New Issue
Block a user