readability2 v0.4.0 Readability.CandidateFinder

The builing and finding candidates engine It traverses the HTML tree searching, removing, socring nodes

Link to this section Summary

Functions

Find candidates that shuld be meaningful article by analysing nodes

Find the highest score candidate.

Link to this section Types

Specs

html_tree() :: tuple() | list()

Specs

options() :: list()

Link to this section Functions

Link to this function

find(text, opts \\ [], tree_depth \\ 0)

Specs

find(html_tree(), options(), number()) :: [Readability.Candidate.t()]

Find candidates that shuld be meaningful article by analysing nodes

Link to this function

find_best_candidate(candidates)

Specs

find_best_candidate([Readability.Candidate.t()]) :: Readability.Candidate.t()

Find the highest score candidate.