No description
Find a file
messense e3b9ca6c6b Merge pull request #11 from spk/use-request-http-client
Use request higher level Client crate for openssl updates
2016-11-14 16:10:18 +08:00
src Use request higher level Client crate for openssl updates 2016-11-12 18:22:55 +01: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 Use request higher level Client crate for openssl updates 2016-11-12 18:22:55 +01:00
LICENSE Initial commit 2015-06-28 01:28:41 +08:00
README.md Replace 0.6 with 0.7 in README and docstring 2016-10-21 14:39:08 +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.7"

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.