Skip to content

Site extractors

Some sites need their own rules. Defuddle picks an extractor from the URL of the page, so set the Url option. An extractor registered for a site is used only when the page has the content it looks for; otherwise the page goes through the standard pipeline. The extractor that produced the content is named in ExtractorType.

The list follows upstream’s extractor registry, in the order the extractors are tried.

Extractor URLs Notes
X article x.com, twitter.com Long-form articles.
X (Twitter) twitter.com, x.com Posts and threads.
X oEmbed x.com, twitter.com Async. Fetches a post or article from the X oEmbed endpoint or the FxTwitter API.
Gmail mail.google.com Email threads.
Reddit reddit.com and its subdomains Posts and comments. Can fetch asynchronously.
YouTube youtube.com, youtu.be Video pages and transcripts. Fetches asynchronously.
Bilibili bilibili.com Video pages and subtitles. Fetches asynchronously.
Hacker News news.ycombinator.com Posts, comments, and listings.
ChatGPT chatgpt.com/c/, chatgpt.com/share/ Conversations.
Claude claude.ai Conversations.
Grok grok.com/chat, grok.com/share Conversations.
Gemini gemini.google.com/app/ Conversations.
GitHub github.com Issues, pull requests, and discussions.
LinkedIn linkedin.com Posts and comments.
Threads threads.net, threads.com Posts and replies.
Bluesky bsky.app Posts and replies.
Medium medium.com and its subdomains Articles.
C2 wiki wiki.c2.com Async. Fetches the page from c2.com.
Substack substack.com Posts and notes.
New York Times nytimes.com Articles.
Wikipedia wikipedia.org Articles.
Mastodon URLs shaped like /@user/123 Detected from the page.
Discourse URLs shaped like /t/topic/123 Detected from the page.
LeetCode leetcode.com Problem descriptions.
LWN lwn.net Articles and comments.
BBCode data any URL Pages that embed announcement bodies as BBCode data.

An extractor that fetches runs only through ParseAsync or ParseHtmlAsync. Requests go through DefuddleOptions.HttpClient when you set it. Set UseAsync to false to stop them.

Some requests go to a third party. For an X post or article that is not in the HTML, the X oEmbed extractor asks the FxTwitter API, and X’s oEmbed endpoint if that gives nothing.

var result = await DefuddleParser.ParseHtmlAsync(
html,
new DefuddleOptions { Url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }
);
Console.WriteLine(result.ExtractorType);
if (result.Variables?.TryGetValue("transcript", out var transcript) == true)
{
Console.WriteLine(transcript);
}

snippet source | anchor

The YouTube and Bilibili extractors put the transcript in the content as HTML, and in Variables["transcript"] as lines of text with Markdown timestamps. The key is missing when no transcript was found. The YouTube extractor reads a transcript panel that is already in the HTML; it cannot click to open one.

The IncludeReplies option controls comments and replies. See Options.

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