DefuddleOptions
Namespace: Defuddle
public sealed class DefuddleOptionsOptions of DefuddleParser. Maps to DefuddleOptions.
Inheritance: object
Properties
Section titled “Properties”ContentSelector
Section titled “ContentSelector”public string? ContentSelector { get; set; }CSS selector of the element that holds the main content, bypassing the auto-detection.
Value: string
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
HttpClient
Section titled “HttpClient”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
IncludeReplies
Section titled “IncludeReplies”public IncludeReplies IncludeReplies { get; set; }Which replies to include in the extracted content. Defaults to Extractors.
Value: IncludeReplies
Language
Section titled “Language”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
Markdown
Section titled “Markdown”public bool Markdown { get; set; }Convert Content to Markdown. Defaults to false.
Value: bool
Profile
Section titled “Profile”public bool Profile { get; set; }Collect per-step timings in Profile. Defaults to false.
Value: bool
RemoveContentPatterns
Section titled “RemoveContentPatterns”public bool RemoveContentPatterns { get; set; }Remove elements by content patterns (read time, boilerplate, article cards). Defaults to true.
Value: bool
RemoveExactSelectors
Section titled “RemoveExactSelectors”public bool RemoveExactSelectors { get; set; }Remove elements that match the exact clutter selectors (ads, social widgets, …). Defaults to true.
Value: bool
RemoveHiddenElements
Section titled “RemoveHiddenElements”public bool RemoveHiddenElements { get; set; }Remove elements that are hidden from view. Defaults to true.
Value: bool
RemoveImages
Section titled “RemoveImages”public bool RemoveImages { get; set; }Remove images from the result. Defaults to false.
Value: bool
RemoveLowScoring
Section titled “RemoveLowScoring”public bool RemoveLowScoring { get; set; }Remove non-content blocks by scoring (link density, text ratios, navigation indicators). Defaults to true.
Value: bool
RemovePartialSelectors
Section titled “RemovePartialSelectors”public bool RemovePartialSelectors { get; set; }Remove elements whose class, id or test attributes contain a clutter pattern. Defaults to true.
Value: bool
RemoveSmallImages
Section titled “RemoveSmallImages”public bool RemoveSmallImages { get; set; }Remove small images (icons, tracking pixels) and images without a usable source. Defaults to true.
Value: bool
SeparateMarkdown
Section titled “SeparateMarkdown”public bool SeparateMarkdown { get; set; }Include Markdown in ContentMarkdown. Defaults to false.
Value: bool
Standardize
Section titled “Standardize”public bool Standardize { get; set; }Standardize the extracted content (footnotes, headings, code blocks, etc.). Defaults to true.
Value: bool
public string? Url { get; set; }URL of the page being parsed. Defaults to the URL of the document.
Value: string
UseAsync
Section titled “UseAsync”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
MIT · Copyright 2025 Steph Ango (@kepano) · unofficial community port of defuddle