Crates.io | robotparser-fork |
lib.rs | robotparser-fork |
version | 0.10.8 |
source | src |
created_at | 2022-03-29 21:10:56.058777 |
updated_at | 2022-04-26 11:38:33.985723 |
description | robots.txt parser for Rust |
homepage | https://github.com/messense/robotparser-rs |
repository | https://github.com/messense/robotparser-rs |
max_upload_size | |
id | 558802 |
size | 30,444 |
robots.txt parser for Rust.
Add it to your Cargo.toml
:
[dependencies]
robotparser = "0.10"
Add extern crate robotparser_fork
to your crate root and your're good to go!
extern crate robotparser_fork;
use robotparser_fork::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"));
}
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.