dom-content-extraction

Rust implementation of Fei Sun, Dandan Song and Lejian Liao paper:

Content Extraction via Text Density (CETD)

```rust use density_tree;

let dtree = densitytree:DensityTree::fromdocument(&document); // &scraper::Html let sortednodes = dtree.sortednodes(); let nodeid = sortednodes.last().unwrap().node_id;

println!("{}", densitytree::getnodetext(nodeid, &document)); ```