No description
Find a file
messense 255166313f Merge pull request #1 from svmk/master
Added get_crawl_delay function
2016-01-14 09:27:22 +08:00
src Improvements. 2016-01-13 21:18:07 +07:00
tests Improvements. 2016-01-13 21:18:07 +07:00
.gitignore Initial commit. 2015-06-28 01:29:05 +08:00
.travis.yml Update .travis.yml to test on Rust stable 2015-09-22 09:47:54 +08:00
appveyor.yml Windows CI build fix again 2015-07-05 00:10:51 +08:00
Cargo.toml Changed version. 2016-01-13 20:53:33 +07: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.