Crates.io | readability-liveboat |
lib.rs | readability-liveboat |
version | 0.3.4 |
created_at | 2025-01-11 21:48:54.742663+00 |
updated_at | 2025-01-26 09:44:30.140743+00 |
description | Port of arc90's readability project to rust, updated for use with liveboat |
homepage | https://github.com/kumabook/readability |
repository | https://github.com/exaroth/readability.git |
max_upload_size | |
id | 1512773 |
size | 29,888 |
This is fork of readability-rs which contains changes required by the Liveboat project. I'm not original author of the project
readability-rs is a library for extracting the primary readable content of a webpage. This is a rust port of arc90's readability project. inspired by kingwkb/readability.
readability
to dependencies in Cargo.toml[dependencies]
readability = "^0"
extern crate readability;
use readability::extractor;
fn main() {
match extractor::scrape("https://spincoaster.com/chromeo-juice") {
Ok(product) => {
println!("------- html ------");
println!("{}", product.content);
println!("---- plain text ---");
println!("{}", product.text);
},
Err(_) => println!("error occured"),
}
}
Visit demo page.