struct

DeviceDetector::Parser::Bot

Inherits DeviceDetector::Helper < Struct < Value < Object

Constants

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

new(user_agent : String)
Source

Class methods

prepare

Compiles all bot rules into a shared immutable registry for parallel parsing.

Source
regex_patterns

Returns the regular-expression sources used by this parser.

Source

Instance methods

bot_index
Source
bots
Source
call
Source
detect_bot(bot, detected_bot)
Source
kind
Source

Nested types