Skip to content

user_agent

PyFunceble can choose a random user-agent to send when making HTTP requests. This is how to parametrize.

Overview

.PyFunceble.overwrite.yaml
user_agent:
  # Provides everything related to choice of user agent.

  # Set the browser to pickup.
  #
  # WARNING:
  #     This parameter will be deprecated (soon?).
  #
  # Available Values: chrome, edge, firefox, ie, opera, safari
  browser: chrome

  # Set the platform to pickup.
  #
  # Available Values: linux, macosx, win10
  platform: linux

  # Set the User-Agent to use.
  #
  # WARNING:
  #     If you choose to set this argument, the browser or platform arguments
  #     won't be taken into consideration.
  #
  # CLI Argument: -ua | --user-agent
  custom: null

  # Set the reference to add to the User-Agent.
  # This is useful when you want to add a reference (e.g. a link) to the User-Agent.
  #
  # The reference will be added at the end of the User-Agent in the following format:
  # {user_agent}; +{reference}
  #
  # When set to `null`, no reference will be added.
  #
  # CLI Argument: --user-agent-reference
  reference: null

browser

Set the browser to pickup.

Type: string

Default Value: chrome

Available Values: chrome, edge, firefox, ie, opera, safari

CLI Argument: None

platform

Set the platform to pickup.

Type: string

Default Value: chrome

Available Values: linux, macosx, win10

CLI Argument: None

custom

Set the User-Agent to use.

Type: string

Default Value: null

Available Values: User-Defined values

CLI Argument: -ua, --user-agent