17 releases (9 breaking)

0.10.1 Mar 12, 2018
0.10.0 Dec 2, 2017
0.9.0 Aug 9, 2017
0.8.2 Apr 1, 2017
0.1.0 Jun 30, 2015

#73 in Parsing tools

Download history 53/week @ 2018-08-14 6/week @ 2018-08-21 23/week @ 2018-08-28 20/week @ 2018-09-04 18/week @ 2018-09-11 8/week @ 2018-09-18 21/week @ 2018-09-25 72/week @ 2018-10-02 18/week @ 2018-10-09 13/week @ 2018-10-16 21/week @ 2018-10-23 11/week @ 2018-10-30 95/week @ 2018-11-06

84 downloads per month
Used in 3 crates

MIT license

18KB
372 lines

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.

Dependencies

~6.5MB
~165K SLoC