trek-rs 0.2.0

A web content extraction library that removes clutter from web pages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Element processors for different content types

pub mod code;
pub mod footnotes;
pub mod headings;
pub mod images;

use lol_html::html_content::Element;

/// Trait for element processors
pub trait ElementProcessor {
    /// Process an element
    fn process(element: &mut Element);

    /// Check if this processor can handle the given element
    fn can_process(element: &Element) -> bool;
}