class Robots::Parser

Defined in:

robots/parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(base_url : String, user_agent : String) #

[View source]

Instance Method Detail

def allowed?(uri) #

Given a URI object, or a string representing one, determine whether this robots.txt would allow access to the path.


[View source]
def base_url : String #

[View source]
def body : String #

[View source]
def rules : Array(Tuple(String, Array(Rule))) #

[View source]
def sitemaps : Array(String) #

[View source]
def user_agent : String #

[View source]