Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bndr/node-read
/ functions
Functions
10 in github.com/bndr/node-read
⨍
Functions
10
◇
Types & classes
0
↓ 5 callers
Function
getClassWeight
* Node Weight is calculated based on className and ID of the node.
lib/utils.js:277
↓ 3 callers
Function
getLinkDensity
* Get Link density of this node. * Total length of link text in this node divided by the total text of the node. * Relative links are not included.
lib/utils.js:295
↓ 2 callers
Function
calculateNodeScore
* calculate score of specified node. * @param node * @param candidates
lib/utils.js:229
↓ 2 callers
Function
filterCandidates
* Filter TopCandidate Siblings (Children) based on their Link Density, and readabilityScore * Append the nodes to articleContent
lib/utils.js:76
↓ 2 callers
Function
getArticle
* Select the TopCandidate from all possible candidates
lib/utils.js:41
↓ 2 callers
Function
parseDOM
(html, url)
index.js:105
↓ 2 callers
Function
scoreCandidate
* Give a score to each node based on the Content. * @param node * @param contentScore * @param candidates
lib/utils.js:213
↓ 1 callers
Function
getCandidates
* Traverse all Nodes and remove unlikely Candidates.
lib/utils.js:126
↓ 1 callers
Function
initializeNode
* Check the type of node, and get its Weight
lib/utils.js:263
Function
Article
(dom, options, uri)
index.js:6