Skip to main content

Module layer2

Module layer2 

Source
Expand description

CEP Layer 2: Readability-style extraction using lol_html streaming rewriter.

PRD SS16: “HTTP + Readability” — ~8ms, ~10MB RAM, for article pages. Uses lol_html to stream through HTML, stripping boilerplate in a single pass without building a full DOM tree.

Functions§

extract
Extract content using lol_html streaming rewriter (Layer 2).
is_sufficient
Check if Layer 2 extraction produced sufficient content.