Back to skills
extension
Category: Data & AnalyticsNo API key required

使用 Defuddle 从网页中提取干净的文章 Markdown

在摘要、索引或归档网页之前,当代理需要从嘈杂的网页中提取干净的、富含元数据的文章文本或Markdown时,请使用Defuddle。

personAuthor: user_3c6cb52ehubcommunity

使用 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