mirror of
https://github.com/danbulant/robotparser-rs
synced 2026-05-19 04:18:42 +00:00
No description
| src | ||
| tests | ||
| .gitignore | ||
| .travis.yml | ||
| appveyor.yml | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
robotparser-rs
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.