Learn R Programming

charlatan (version 0.2.2)

UserAgentProvider: UserAgentProvider

Description

UserAgentProvider

Usage

useragent_provider_locales

Arguments

locale

(character) the locale to use. Run useragent_provider_locales() for locales supported (default: en_US)

Format

An object of class character of length 1.

Details

Methods

  • mac_processor() - a mac processor

  • linux_processor() - a linux processor

  • user_agent() - a user agent string, randomly picks one from chrome, firefix, safari, opera or internet explorer

  • chrome(version_from, version_to, build_from, build_to) - a chrome user agent string

  • firefox() - a firefox user agent string

  • safari() - a safari user agent string

  • opera() - an opera user agent string

  • internet_explorer() - an internet explorer user agent string

  • windows_platform_token() - a windows platform token

  • linux_platform_token() - a linux platform token

  • mac_platform_token() - a mac platform token

Examples

Run this code
# NOT RUN {
(x <- UserAgentProvider$new())
x$locale
x$mac_processor()
x$linux_processor()
x$user_agent()
x$chrome()
x$firefox()
x$internet_explorer()
x$opera()
x$safari()
# }

Run the code above in your browser using DataLab