Class

RssExtractor

Description

final class Rss.Extractor : GObject.Object
{
  /* No available fields */
}

Extracts article content from HTML by combining metadata harvesting with Readability-style content extraction.

The extractor looks for article metadata in Open Graph tags, X/Twitter Card tags, JSON-LD, and HTML link relations. It then removes boilerplate, segments the remaining DOM into text blocks, scores those blocks using link-density and text-density heuristics, suppresses repeated boilerplate, and assembles cleaned text, HTML, and Markdown output.

Useful references for the techniques used here: - Open Graph protocol: https://ogp.me/ - X Cards markup: https://developer.x.com/cards/markup - JSON-LD 1.1: https://www.w3.org/TR/json-ld11/ - HTML link relations: https://html.spec.whatwg.org/multipage/links.html - Readability algorithm: https://github.com/mozilla/readability.

Hierarchy

hierarchy this RssExtractor ancestor_0 GObject ancestor_0--this

Ancestors

Constructors

rss_extractor_new

Creates a new extractor instance.

Instance methods

rss_extractor_extract_bytes

Extracts an article from an in-memory HTML buffer.

rss_extractor_extract_stream

Extracts an article from a readable input stream.

rss_extractor_get_options

Returns the options currently owned by the extractor.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct RssExtractorClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.