Roboto: Parse and use robots.txt files
Roboto provides a type-safe way to parse and use robots.txt files. It is based on the Robots Exclusion Protocol and is used to approximately try control the behavior of web crawlers and other web robots.
Installation
Add this to your Cargo.toml:
[]
= "0.1"
Usage
use Robots;
let robots = r#"
User-agent: *
Disallow: /private
Disallow: /tmp
"#..unwrap;
let user_agent = "googlebot".parse.unwrap;
assert_eq!;