Skip to content

DefuddleOptions

Namespace: Defuddle

public sealed class DefuddleOptions

Options of DefuddleParser. Maps to DefuddleOptions.

Inheritance: object

View source

public string? ContentSelector { get; set; }

CSS selector of the element that holds the main content, bypassing the auto-detection.

Value: string

View source

public bool Debug { get; set; }

Return debug information in the response and skip some cleanup that would hide the page structure. Defaults to false.

Value: bool

View source

public HttpClient? HttpClient { get; set; }

The client used for every request extractors make (for example YouTube transcripts or Reddit comments). Stands for the fetch option. A shared client is used by default.

Value: HttpClient

View source

public IncludeReplies IncludeReplies { get; set; }

Which replies to include in the extracted content. Defaults to Extractors.

Value: IncludeReplies

View source

public string? Language { get; set; }

Preferred language of the content (a BCP 47 tag such as en, fr or ja). Sent as the Accept-Language header and used to select transcript tracks in extractors such as YouTube.

Value: string

View source

public bool Markdown { get; set; }

Convert Content to Markdown. Defaults to false.

Value: bool

View source

public bool Profile { get; set; }

Collect per-step timings in Profile. Defaults to false.

Value: bool

View source

public bool RemoveContentPatterns { get; set; }

Remove elements by content patterns (read time, boilerplate, article cards). Defaults to true.

Value: bool

View source

public bool RemoveExactSelectors { get; set; }

Remove elements that match the exact clutter selectors (ads, social widgets, …). Defaults to true.

Value: bool

View source

public bool RemoveHiddenElements { get; set; }

Remove elements that are hidden from view. Defaults to true.

Value: bool

View source

public bool RemoveImages { get; set; }

Remove images from the result. Defaults to false.

Value: bool

View source

public bool RemoveLowScoring { get; set; }

Remove non-content blocks by scoring (link density, text ratios, navigation indicators). Defaults to true.

Value: bool

View source

public bool RemovePartialSelectors { get; set; }

Remove elements whose class, id or test attributes contain a clutter pattern. Defaults to true.

Value: bool

View source

public bool RemoveSmallImages { get; set; }

Remove small images (icons, tracking pixels) and images without a usable source. Defaults to true.

Value: bool

View source

public bool SeparateMarkdown { get; set; }

Include Markdown in ContentMarkdown. Defaults to false.

Value: bool

View source

public bool Standardize { get; set; }

Standardize the extracted content (footnotes, headings, code blocks, etc.). Defaults to true.

Value: bool

View source

public string? Url { get; set; }

URL of the page being parsed. Defaults to the URL of the document.

Value: string

View source

public bool UseAsync { get; set; }

Allow async extractors to fetch content from third-party APIs when no content can be extracted from the local HTML. Only the asynchronous methods fetch. Defaults to true.

Value: bool

View source

MIT · Copyright 2025 Steph Ango (@kepano) · unofficial community port of defuddle