robotparser-fork

Crates.iorobotparser-fork
lib.rsrobotparser-fork
version0.10.8
sourcesrc
created_at2022-03-29 21:10:56.058777
updated_at2022-04-26 11:38:33.985723
descriptionrobots.txt parser for Rust
homepagehttps://github.com/messense/robotparser-rs
repositoryhttps://github.com/messense/robotparser-rs
max_upload_size
id558802
size30,444
Jeff Mendez (j-mendez)

documentation

https://messense.github.io/robotparser-rs

README

robotparser-rs

Build Status Build status Coverage Status Crates.io Dependency status

robots.txt parser for Rust.

Installation

Add it to your Cargo.toml:

[dependencies]
robotparser = "0.10"

Add extern crate robotparser_fork to your crate root and your're good to go!

Examples

extern crate robotparser_fork;

use robotparser_fork::RobotFileParser;

fn main() {
    let parser = RobotFileParser::new("http://www.python.org/robots.txt");
    parser.read();
    assert!(parser.can_fetch("*", "http://www.python.org/robots.txt"));
}

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Commit count: 104

cargo fmt