Liking cljdoc? Tell your friends :D

hive-html.page

A fetched HTML page as text, headings, links and metadata.

Three ports, each with a JDK-only default: IHtmlStructureParser walks the markup into blocks (one paragraph per block, headings as markdown heading lines, pre blocks fenced), IHtmlTextExtractor reduces that to text, and IWebsiteMetadataParser reads title, description and canonical URL. IWebsiteParser composes them and is the port a consumer injects at.

Rationale: hive memory 20260906010127-029f8f5e.

A fetched HTML page as text, headings, links and metadata.

Three ports, each with a JDK-only default: IHtmlStructureParser walks the
markup into blocks (one paragraph per block, headings as markdown heading
lines, pre blocks fenced), IHtmlTextExtractor reduces that to text, and
IWebsiteMetadataParser reads title, description and canonical URL.
IWebsiteParser composes them and is the port a consumer injects at.

Rationale: hive memory 20260906010127-029f8f5e.
raw docstring

default-metadata-parserclj

source

default-structure-parserclj

source

default-text-extractorclj

source

default-website-parserclj

(default-website-parser)
source

IHtmlStructureParsercljprotocol

parse-structureclj

(parse-structure this html)
source

IHtmlTextExtractorcljprotocol

extract-textclj

(extract-text this html)
source

IWebsiteMetadataParsercljprotocol

parse-metadataclj

(parse-metadata this structure url)
source

IWebsiteParsercljprotocol

parse-website-pageclj

(parse-website-page this html opts)

BODY as a page map {:url :canonical-url :title :description :content :headings :links ...}. opts carries :url. Returns Result<page>.

BODY as a page map {:url :canonical-url :title :description :content
:headings :links ...}. opts carries :url. Returns Result<page>.
source

parse-pageclj

(parse-page html opts)

Parse one HTML page into page fields with the default parser. opts carries :url. Returns Result<page>.

Parse one HTML page into page fields with the default parser.
opts carries :url. Returns Result<page>.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close