No description
Find a file
2018-04-02 10:31:34 +08:00
src Use host_str instead domain for HostInternal 2018-03-11 22:05:14 +01:00
tests Use host_str instead domain for HostInternal 2018-03-11 22:05:14 +01: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 Again fix AppVeyor 2018-01-11 13:43:24 +08:00
Cargo.toml Bump version to 0.10.1 2018-03-12 09:29:22 +08:00
LICENSE Initial commit 2015-06-28 01:28:41 +08:00
README.md Add deps status badge (#15) 2018-04-02 10:31:34 +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 Dependency status

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.