No description
Find a file
2016-03-06 16:19:58 +08:00
src Refactor codes like clippy suggested 2016-03-06 16:19:58 +08:00
tests Added sitemap support. 2016-02-08 17:23:46 +07:00
.gitignore Initial commit. 2015-06-28 01:29:05 +08:00
.travis.yml Refactor codes like clippy suggested 2016-03-06 16:19:58 +08:00
appveyor.yml Windows CI build fix again 2015-07-05 00:10:51 +08:00
Cargo.toml Refactor codes like clippy suggested 2016-03-06 16:19:58 +08:00
LICENSE Initial commit 2015-06-28 01:28:41 +08:00
README.md Update README.md 2015-07-04 23:43:10 +08:00

robotparser-rs

Build Status Build status Coverage Status Crates.io

robots.txt parser for Rust.

Installation

Add it to your Cargo.toml:

[dependencies]
robotparser = "*"

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

Examples

extern crate robotparser;

use robotparser::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.