Skip to content

Latest commit

History

53 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

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
use readability::extractor;fnmain(){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.

Related Projects

License

MIT

About

Port of arc90labs-readability with rust

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages