View Source Readability.CandidateFinder (readability v0.12.1)

The builing and finding candidates engine.

It traverses the HTML tree searching, removing, socring nodes.

Summary

Functions

Check html_tree can be candidate or not.

Find candidates that should be meaningful article by analysing nodes.

Find the highest score candidate.

Types

@type html_tree() :: tuple() | list()
@type options() :: list()

Functions

Link to this function

candidate_tag?(html_tree)

View Source
@spec candidate_tag?(html_tree()) :: boolean()

Check html_tree can be candidate or not.

Link to this function

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

View Source
@spec find(html_tree(), options(), number()) :: [Readability.Candidate.t()]

Find candidates that should be meaningful article by analysing nodes.

Link to this function

find_best_candidate(candidates)

View Source
@spec find_best_candidate([Readability.Candidate.t()]) :: Readability.Candidate.t()

Find the highest score candidate.