R/random_useragent.R
random_useragent.Rd
randomly choosing an user-agent string, given a set of conditions
random_useragent( min_obs = 5000, software_name = NULL, software_type = "browser", operating_system_name = "Windows", layout_engine_name = NULL )
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 |
a random user agent string, given filter conditions
random_useragent() #> [1] "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"