8 releases

Uses old Rust 2015

0.3.0 Dec 20, 2023
0.2.0 Apr 1, 2021
0.1.5 May 7, 2019
0.1.4 Feb 17, 2018
0.1.2 Nov 13, 2017

#528 in Text processing

Download history 10798/week @ 2026-01-26 11701/week @ 2026-02-02 9264/week @ 2026-02-09 11353/week @ 2026-02-16 9921/week @ 2026-02-23 12090/week @ 2026-03-02 12366/week @ 2026-03-09 10544/week @ 2026-03-16 11707/week @ 2026-03-23 11435/week @ 2026-03-30 10037/week @ 2026-04-06 11302/week @ 2026-04-13 11631/week @ 2026-04-20 12390/week @ 2026-04-27 15016/week @ 2026-05-04 18258/week @ 2026-05-11

59,408 downloads per month
Used in 65 crates (32 directly)

MIT license

26KB
697 lines

readability-rs

Build Status

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.

Hot to use

  • Add readability to dependencies in Cargo.toml
[dependencies]
readability = "^0"
  • Then, use it as below

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"),
  }
}

Demo

Visit demo page.

License

MIT

Dependencies

~8–24MB
~308K SLoC