Readability.CandidateFinder (readability2 v0.7.0)

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

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

Link to this section Functions

Link to this function

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

@spec 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)

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

Find the highest score candidate.