Package 'Randomuseragent'

Title: Filtering and Randomly Sampling Real User-Agent Strings
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.
Authors: Fangzhou Xie [aut, cre]
Maintainer: Fangzhou Xie <[email protected]>
License: MIT + file LICENSE
Version: 0.0.1
Built: 2025-02-13 02:55:44 UTC
Source: https://github.com/fangzhou-xie/randomuseragent

Help Index


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()