Merge remote-tracking branch 'origin/main'
# Conflicts: # .gitignore # README.md # auto-scrape.mjs # fetch-feishu-wiki.mjs
This commit is contained in:
+15
-8
@@ -1,23 +1,30 @@
|
|||||||
# Dependencies
|
# 依赖
|
||||||
node_modules
|
node_modules/
|
||||||
|
|
||||||
# Output
|
# 采集输出与产物
|
||||||
output
|
output/
|
||||||
|
dist/
|
||||||
|
*.zip
|
||||||
|
|
||||||
# Cookies / sessions (auto-generated by scraper)
|
# 凭据(绝不能入库)
|
||||||
cookies.json
|
cookies.json
|
||||||
feishu-cookies.json
|
feishu-cookies.json
|
||||||
feishu-wiki-cookies.json
|
feishu-wiki-cookies.json
|
||||||
*-cookies.json
|
*-cookies.json
|
||||||
|
|
||||||
# Auth artifacts
|
# 登录凭证产物
|
||||||
feishu-auth-qr.png
|
feishu-auth-qr.png
|
||||||
|
|
||||||
# Local config / IDE
|
# 抓取的内容文件(非代码)
|
||||||
|
_import_src.md
|
||||||
|
🎯AI落地Live83·探索AI协作新范式.md
|
||||||
|
🎯AI落地Live第84场·一堂✖️探月特别篇.md
|
||||||
|
|
||||||
|
# 本地配置 / IDE
|
||||||
.claude/
|
.claude/
|
||||||
.debug/
|
.debug/
|
||||||
.trae/
|
.trae/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# Bundled browsers (pkg build output)
|
# pkg 打包的浏览器(构建产物)
|
||||||
browsers/
|
browsers/
|
||||||
|
|||||||
+4
-1
@@ -471,7 +471,10 @@ async function saveStorageState(ctx) {
|
|||||||
|
|
||||||
const savedState = loadStorageState();
|
const savedState = loadStorageState();
|
||||||
const hasSavedCookies = !!savedState;
|
const hasSavedCookies = !!savedState;
|
||||||
const browser = await chromium.launch({ headless: false, args: ['--window-size=820,720'] });
|
// CHROME_PATH 环境变量可指定自定义浏览器路径(来自远程分支的特性)
|
||||||
|
const launchOpts = { headless: false, args: ['--window-size=820,720'] };
|
||||||
|
if (process.env.CHROME_PATH) launchOpts.executablePath = process.env.CHROME_PATH;
|
||||||
|
const browser = await chromium.launch(launchOpts);
|
||||||
const context = await browser.newContext(savedState ? { storageState: savedState } : {});
|
const context = await browser.newContext(savedState ? { storageState: savedState } : {});
|
||||||
|
|
||||||
if (savedState) {
|
if (savedState) {
|
||||||
|
|||||||
Reference in New Issue
Block a user