使用 Defuddle 从网页中提取干净的文章 Markdown
Use Defuddle when an agent needs clean, metadata-rich article text or Markdown from noisy web pages before summarizing, indexing, or archiving them.
Prerequisites
Node.js, npx or npm, defuddle CLI
Installation
Use the upstream install or setup path that matches your environment:
- npx defuddle parse page.html
- npx defuddle parse https://example.com/article
- npx defuddle parse page.html --markdown
- npx defuddle parse page.html --json
Requirements and caveats from upstream:
-
Node.js
- defuddle/node accepts a DOM Document from any implementation (JSDOM, linkedom, happy-dom, etc.).
- import { Defuddle } from 'defuddle/node';
Basic usage or getting-started notes:
-
Defuddle takes a URL or HTML, finds the main content, and returns cleaned HTML or Markdown. Defuddle was created for the browser extension Obsidian Web Clipper, but it...
-
Browser
-
javascript
-
Source: https://github.com/1991513ccie-png/skills
-
Extracted from upstream docs: https://raw.githubusercontent.com/kepano/defuddle/HEAD/README.md
Documentation
- https://defuddle.md
Scan to join WeChat group