No description
Find a file
2016-10-05 13:30:10 +08:00
src Feature gate hyper 2016-10-02 13:17:15 +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 Refactor codes like clippy suggested 2016-03-06 16:19:58 +08:00
appveyor.yml Upgrade Win32 OpenSSL on Appveyor CI 2016-10-05 10:50:22 +08:00
Cargo.toml Bump version to 0.7.0 2016-10-05 13:30:10 +08:00
LICENSE Initial commit 2015-06-28 01:28:41 +08:00
README.md Update version in README and documentation 2016-08-25 20:38:05 +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.6"

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.