random_useragent: randomly choosing an user-agent string, given a set of conditions
Description
randomly choosing an user-agent string, given a set of conditions
Usage
random_useragent(
min_obs = 5000,
software_name = NULL,
software_type = "browser",
operating_system_name = "Windows",
layout_engine_name = NULL
)
Arguments
min_obs
minimum number observed for any given UA string, default 5000
software_name
e.g. "Chrome", "Safari", "Firefox", "Edge", etc
software_type
e.g. "browser", "bot", "application"
operating_system_name
e.g. "Windows", "Linux", "Mac OS X", "macOS", etc
layout_engine_name
e.g. "Gecko", "Blink", etc
Value
a random user agent string, given filter conditions
Examples
Run this code# NOT RUN {
random_useragent()
# }
Run the code above in your browser using DataLab