vault backup: 2026-11-06 20:19:57
This commit is contained in:
1 parent
8901e4f4db
commit
2c6569dbdf
35 files changed
+17455
-326
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import fs from 'node:fs';
|
||||
const j = JSON.parse(fs.readFileSync('.cdp/out/overview-capture.json', 'utf8'));
|
||||
const v = j.value;
|
||||
const L = [];
|
||||
L.push('clicks: ' + JSON.stringify(v.clicks));
|
||||
L.push('capTotal=' + v.capTotal + ' n7=' + v.n7 + ' n30=' + v.n30);
|
||||
L.push('');
|
||||
L.push('--- captured ---');
|
||||
for (const c of v.captured) {
|
||||
L.push(`[${c.kind}] status=${c.status} api=${c.api}`);
|
||||
L.push(' ret=' + JSON.stringify(c.ret) + ' dataKeys=' + JSON.stringify(c.dataKeys) + ' rawLen=' + c.rawLen);
|
||||
}
|
||||
L.push('');
|
||||
L.push('--- rawBodies 可解析数 --- ' + v.rawBodies.length);
|
||||
for (const b of v.rawBodies) {
|
||||
let api = '';
|
||||
try { api = /["']?api["']?\s*[:=]\s*["']?([\w.]+)/.exec(b.url)?.[1] || ''; } catch {}
|
||||
L.push(' url=' + b.url.slice(0, 220) + ' len=' + b.text.length);
|
||||
}
|
||||
fs.writeFileSync('.cdp/out/overview-capture-summary.txt', L.join('\n'), 'utf8');
|
||||
Reference in new issue
Block a user