Liking cljdoc? Tell your friends :D

hive-ingestor-web.frontier

The crawl frontier port, and the hive-crawl adapter behind it.

Depth, politeness and robots.txt are a crawler's job, not an ingestion pipeline's. The pipeline sees only this port; hive-crawl is one adapter and a fake is another, which is what keeps the suite offline.

The adapter resolves hive-crawl at CALL time: hive-crawl is unpublished and deliberately absent from deps.edn, so this namespace must load - and the suite must pass - with it off the classpath.

The crawl frontier port, and the hive-crawl adapter behind it.

Depth, politeness and robots.txt are a crawler's job, not an ingestion
pipeline's. The pipeline sees only this port; hive-crawl is one adapter and
a fake is another, which is what keeps the suite offline.

The adapter resolves hive-crawl at CALL time: hive-crawl is unpublished and
deliberately absent from deps.edn, so this namespace must load - and the
suite must pass - with it off the classpath.
raw docstring

crawl-output->pagesclj

(crawl-output->pages output)

The crawl-site payload as a vector of CrawledPage.

The crawl-site payload as a vector of CrawledPage.
sourceraw docstring

hive-crawl-frontierclj

(hive-crawl-frontier)
(hive-crawl-frontier crawl-fn)

A frontier backed by hive-crawl, resolved lazily.

With CRAWL-FN supplied the resolution is skipped, which is the seam a test or an alternative crawler uses.

A frontier backed by hive-crawl, resolved lazily.

With CRAWL-FN supplied the resolution is skipped, which is the seam a test
or an alternative crawler uses.
sourceraw docstring

ICrawlFrontiercljprotocol

crawl-pagesclj

(crawl-pages this spec)

Crawl per SPEC (a hive-ingestor-web.schema/CrawlSpec). Returns Result<[CrawledPage]>.

Crawl per SPEC (a hive-ingestor-web.schema/CrawlSpec).
Returns Result<[CrawledPage]>.

frontier-idclj

(frontier-id this)

Stable id of the frontier implementation.

Stable id of the frontier implementation.
source

IFrontierHealthcljprotocol

frontier-healthclj

(frontier-health this)

Returns {:status :ok|:degraded|:down :details {...}}.

Returns {:status :ok|:degraded|:down :details {...}}.
source

resolve-crawl-siteclj

(resolve-crawl-site)

The hive-crawl entry point, or nil when hive-crawl is not on the classpath.

The hive-crawl entry point, or nil when hive-crawl is not on the classpath.
sourceraw docstring

spec->kwargsclj

(spec->kwargs spec)

CrawlSpec as the trailing keyword arguments hive-crawl.core/crawl-site takes.

The crawler4j backend is not a preference: it is the only one of the three that honours robots.txt and a politeness delay, and the only one that surrenders the page HTML rather than a flattened dump.

CrawlSpec as the trailing keyword arguments hive-crawl.core/crawl-site takes.

The crawler4j backend is not a preference: it is the only one of the three
that honours robots.txt and a politeness delay, and the only one that
surrenders the page HTML rather than a flattened dump.
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