1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! # kawat
//!
//! A Rust library for web content extraction, inspired by
//! [trafilatura](https://github.com/adbar/trafilatura).
//!
//! Extracts main text, metadata, and comments from HTML documents
//! with a multi-algorithm fallback cascade.
//!
//! ## Usage
//!
//! ```rust,no_run
//! use kawat::{extract, fetch_url, ExtractorOptions};
//!
//! // From URL
//! let html = fetch_url("https://example.org/article").unwrap();
//! let text = extract(&html, &ExtractorOptions::default()).unwrap();
//!
//! // With options
//! let options = ExtractorOptions {
//! with_metadata: true,
//! ..Default::default()
//! };
//! let text = extract(&html, &options).unwrap();
//! ```
//!
//! ## Name
//!
//! *Kawat* is Indonesian for "wire" — the same metallurgical metaphor as
//! *trafilatura* (Italian for "wire drawing"), symbolizing the refinement
//! of raw HTML into clean, structured text.
pub use htmldate_rs;
pub use ;
/// Fetch a URL and return the HTML content.
/// Async version of `fetch_url`.
pub async