From 2f3dfb3028eb89887507475841051bb733107aa7 Mon Sep 17 00:00:00 2001 From: Rogee Date: Mon, 2 Feb 2026 18:32:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20README.md=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E5=8C=85=E5=90=AB=E9=A1=B9=E7=9B=AE=E8=A6=81?= =?UTF-8?q?=E6=B1=82=E3=80=81=E4=BD=BF=E7=94=A8=E6=96=B9=E6=B3=95=E3=80=81?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E8=AF=B4=E6=98=8E=E5=92=8C=E6=B3=A8=E6=84=8F?= =?UTF-8?q?=E4=BA=8B=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c23c8e9 --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# rrx_resource + +## Requirements +- Node.js 18+ +- Playwright: `npm install playwright` + +## Usage +### Default workflow +```bash +node run.mjs "https://h5.rrx.cn/storeview/.html" +``` + +### Remote Chrome DevTools (optional) +```bash +node run.mjs "https://h5.rrx.cn/storeview/.html" --cdp http://127.0.0.1:9222 +``` +Or set: +```bash +export ENV_CDP=http://127.0.0.1:9222 +``` + +## Output +- Screenshot: `downloads/--<page-id>/index.png` +- Media files: `downloads/<date>-<title>-<page-id>/media/` +- Source URLs: `downloads/<date>-<title>-<page-id>/urls.txt` + +## Notes +- Viewport: 375×667 @ dpr 3 +- Only audio/video/image URLs are collected