Run in the directory where the current file is located:./scripts/fetch_url.py URL(Only supports http / https)。
Note: It must be executed directly as an executable file.
By default, it automatically detects the local Chromium-based browser path; if not detected, the Playwright browser needs to be installed:
uv run playwright install chromium
Parameters:
--output: Write the output to a file (default stdout).--timeout-ms: Playwright navigation timeout (milliseconds, default 60000).--browser-path: Specify the local Chromium-based browser path (default auto-detect).--output-format: Output format (defaultmarkdown), supportscsv、html、json、markdown、raw-html、txt、xml、xmltei;raw-htmldirectly output the rendered HTML (without going through trafilatura).
Example:
./scripts/fetch_url.py https://example.com --output ./page.md --timeout-ms 60000
Reference:scripts/fetch_url.py