defuddle
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDefuddle
Defuddle
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-cli使用Defuddle CLI从网页中提取干净易读的内容。对于标准网页,优先使用它而非WebFetch——它会移除导航栏、广告和杂乱内容,减少token的使用。
若未安装:
npm install -g defuddle-cliUsage
使用方法
Always use for markdown output:
--mdbash
defuddle parse <url> --mdSave to file:
bash
defuddle parse <url> --md -o content.mdExtract specific metadata:
bash
defuddle parse <url> -p title
defuddle parse <url> -p description
defuddle parse <url> -p domain始终使用参数以输出Markdown格式:
--mdbash
defuddle parse <url> --md保存到文件:
bash
defuddle parse <url> --md -o content.md提取特定元数据:
bash
defuddle parse <url> -p title
defuddle parse <url> -p description
defuddle parse <url> -p domainOutput formats
输出格式
| Flag | Format |
|---|---|
| Markdown (default choice) |
| JSON with both HTML and markdown |
| (none) | HTML |
| Specific metadata property |
| 标记 | 格式 |
|---|---|
| Markdown(默认选项) |
| 包含HTML和Markdown的JSON |
| (无) | HTML |
| 特定元数据属性 |