Baoyu Url To Markdown
by @jimliu
Fetch any URL and convert to markdown using baoyu-fetch CLI (Chrome CDP with site-specific adapters). Built-in adapters for X/Twitter, YouTube transcripts, H...
# Default: headless capture, markdown to stdout
${READER} Save to file
${READER} --output article.mdSave with media download
${READER} --output article.md --download-mediaWait for interaction (login/CAPTCHA) β auto-detect and continue
${READER} --wait-for interaction --output article.mdWait for interaction β manual control (Enter to continue)
${READER} --wait-for force --output article.mdJSON output
${READER} --format json --output article.jsonForce specific adapter
${READER} --adapter youtube --output transcript.md
| Option | Description |
|--------|-------------|
| | URL to fetch |
| --output | Output file path (default: stdout) |
| --format | Output format: markdown (default) or json |
| --json | Shorthand for --format json |
| --adapter | Force adapter: x, youtube, hn, or generic (default: auto-detect) |
| --headless | Force headless Chrome (no visible window) |
| --wait-for | Interaction wait mode: none (default), interaction, or force |
| --wait-for-interaction | Alias for --wait-for interaction |
| --wait-for-login | Alias for --wait-for interaction |
| --timeout | Page load timeout (default: 30000) |
| --interaction-timeout | Login/CAPTCHA wait timeout (default: 600000 = 10 min) |
| --interaction-poll-interval | Poll interval for interaction checks (default: 1500) |
| --download-media | Download images/videos to local imgs/ and videos/, rewrite markdown links. Requires --output |
| --media-dir | Base directory for downloaded media (default: same as --output directory) |
| --cdp-url | Reuse existing Chrome DevTools Protocol endpoint |
| --browser-path | Custom Chrome/Chromium binary path |
| --chrome-profile-dir | Chrome user data directory (default: BAOYU_CHROME_PROFILE_DIR env or ./baoyu-skills/chrome-profile) |
| --debug-dir | Write debug artifacts (document.json, markdown.md, page.html, network.json) |
clawhub install baoyu-url-to-markdown