| Type: | Package | 
| Title: | Filtering and Randomly Sampling Real User-Agent Strings | 
| Version: | 0.0.1 | 
| Description: | Based on data of real user-agent strings, we can set filtering conditions and randomly sample user-agent strings from the user-agent string pool. | 
| License: | MIT + file LICENSE | 
| Encoding: | UTF-8 | 
| Depends: | R (≥ 3.5) | 
| Suggests: | dplyr, knitr, markdown, rmarkdown | 
| VignetteBuilder: | knitr | 
| URL: | https://github.com/fangzhou-xie/Randomuseragent, https://fangzhou-xie.github.io/Randomuseragent/index.html | 
| BugReports: | https://github.com/fangzhou-xie/randomuseragent/issues | 
| RoxygenNote: | 7.1.1 | 
| NeedsCompilation: | no | 
| Packaged: | 2021-06-16 14:57:04 UTC; xiefangzhou | 
| Author: | Fangzhou Xie | 
| Maintainer: | Fangzhou Xie <fangzhou.xie@rutgers.edu> | 
| Repository: | CRAN | 
| Date/Publication: | 2021-06-17 08:00:04 UTC | 
filter useragents based on criteria
Description
filter useragents based on criteria
Usage
filter_useragent(
  min_obs = 0,
  software_name = NULL,
  software_type = NULL,
  operating_system_name = NULL,
  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
character vector of user agents
Examples
filter_useragent(
  min_obs = 500000,
  software_name = "Chrome",
  operating_system_name = "Linux"
)
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
random_useragent()