Skip to contents

user agent methods For instance mac_processor, user_agents, chrome and firefox user agents.

Value

UserAgentProvider object.

Super classes

charlatan::BareProvider -> charlatan::BaseProvider -> charlatan::UserAgentProvider -> UserAgentProvider_en_US

Examples

(x <- UserAgentProvider_en_US$new())
#> < UserAgentProvider >
#> locale: en_US
x$locale
#> [1] "en_US"
x$mac_processor()
#> [1] "PPC"
x$linux_processor()
#> [1] "i686"
x$user_agent()
#> [1] "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_12_2 rv:4.0; uz-UZ) AppleWebKit/533.9.3 (KHTML, like Gecko) Version/4.0 Safari/533.9.3"
x$chrome()
#> [1] "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/5352 (KHTML, like Gecko) Chrome/53.0.841.0 Safari/5352"
x$firefox()
#> [1] "Mozilla/5.0 (X11; Linux x86_64; rv:1.9.6.20) Gecko/2020-12-23 02:27:25 Firefox/3.8"
x$internet_explorer()
#> [1] "Mozilla/5.0 (compatible; MSIE 6.0; Windows NT 5.2; Trident/5.1)"
x$opera()
#> [1] "Opera/9.73.(X11; Linux x86_64; gd-GB) Presto/2.9.175 Version/12.00"
x$safari()
#> [1] "Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_7_6 rv:6.0; hsb-DE) AppleWebKit/535.2.1 (KHTML, like Gecko) Version/4.0 Safari/535.2.1"