18 releases (9 breaking)

0.10.2 Sep 22, 2018
0.10.1 Mar 12, 2018
0.10.0 Dec 2, 2017
0.9.0 Aug 9, 2017
0.1.0 Jun 30, 2015

#62 in Parsing tools

Download history 5/week @ 2018-10-28 82/week @ 2018-11-04 77/week @ 2018-11-11 36/week @ 2018-11-18 27/week @ 2018-11-25 141/week @ 2018-12-02 23/week @ 2018-12-09 43/week @ 2018-12-16 66/week @ 2018-12-23 90/week @ 2018-12-30 11/week @ 2019-01-06 42/week @ 2019-01-13

211 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

~3.5MB
~72K SLoC