No description
Find a file
2017-12-02 23:52:48 +08:00
src Bump version to 0.10.0 2017-12-02 23:52:48 +08:00
tests Feature gate hyper 2016-10-02 13:17:15 +08:00
.gitignore Add .vscode/ to .gitignore 2016-08-21 11:00:21 +08:00
.travis.yml Set RUST_BACKTRACE=1 on Travis CI 2017-03-12 22:10:33 +08:00
appveyor.yml Appveyor use openssl 1.0.2m 2017-12-02 23:49:41 +08:00
Cargo.toml Bump version to 0.10.0 2017-12-02 23:52:48 +08:00
LICENSE Initial commit 2015-06-28 01:28:41 +08:00
README.md Bump version to 0.10.0 2017-12-02 23:52:48 +08:00
rustfmt.toml style: rustfmt source codes 2016-08-21 10:58:18 +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 = "0.10"

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.