使用 Defuddle CLI 从网页提取干净的 Markdown 内容,去除广告、导航等冗余信息,以节省 token。在用户提供 URL 时,可代替 WebFetch 使用。
Use Defuddle CLI to extract clean readable content from web pages. Prefer over WebFetch for standard web pages — it removes navigation, ads, and clutter, reducing token usage.
If not installed: npm install -g defuddle
Always use --md for markdown output:
bash
defuddle parse <url> --md
Save to file:
bash
defuddle parse <url> --md -o content.md
Extract specific metadata:
bash
defuddle parse <url> -p title
defuddle parse <url> -p description
defuddle parse <url> -p domain
FlagFormat--mdMarkdown (default choice)--jsonJSON with both HTML and markdown(none)HTML-p <name>Specific metadata property