struct DeviceDetector::Parser::Bot

Included Modules

Defined in:

device_detector/parser/bot.cr

Constant Summary

BOT_HINTS = /bot|crawl|spider|archiver|checker|monitor|fetcher|indexer|scanner|scraper|search|validator/i
COMMON_BOTS = {"Googlebot" => "Googlebot", "Bingbot" => "BingBot", "bingbot" => "BingBot", "DuckDuckBot" => "DuckDuckBot", "AhrefsBot" => "aHrefs Bot", "SemrushBot" => "SemrushBot", "MJ12bot" => "MJ12 Bot", "DotBot" => "DotBot"}

Constructors

Instance Method Summary

Instance methods inherited from module DeviceDetector::Helper

capture_groups?(str : String) capture_groups?, desktop?(user_agent : String) desktop?, fill_groups(str : String, regex : String, user_agent : String) fill_groups, human_browser?(user_agent : String) human_browser?, regex(pattern : String, options : Regex::Options)
regex(pattern : String)
regex
, token_candidates(index : Hash(String, Array(Int32)), user_agent : String, reverse = false) token_candidates

Constructor Detail

def self.new(user_agent : String) #

[View source]

Instance Method Detail

def bot_index #

[View source]
def bots #

[View source]
def call #

[View source]
def detect_bot(bot, detected_bot) #

[View source]
def kind : String #

[View source]