Skip to main content

Simple user-agent generator (Firefox).

Project description

mimic_user_agent

A simple function that returns a random or static fake 'user-agent', Firefox browser only.

Uso

>>> from mimic_useragent import mimic_user_agent
>>> mimic_user_agent()
'Mozilla/5.0 (X11; Ubuntu; Linux; x86_64; rv:120.0) Gecko/20100101 Firefox/120.0'
>>> mimic_user_agent(seed=10)
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0'

Receives an int parameter for the use of a seed, default is None.

Tests

python -m unittest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mimic_useragent-0.1.3.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

mimic_useragent-0.1.3-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file mimic_useragent-0.1.3.tar.gz.

File metadata

  • Download URL: mimic_useragent-0.1.3.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.9 Linux/6.8.9-100.fc38.x86_64

File hashes

Hashes for mimic_useragent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6e1714d518ffd770b79d2c49e84657697d49485802fe65ecc7ea787110afb5f1
MD5 59ed72c39a14ea2025df6e8aa40ff3c7
BLAKE2b-256 5e823bd26a6b42de0e05ec30a3533f1b9aa268f2e0aac6fc089cce8e6bb84f49

See more details on using hashes here.

File details

Details for the file mimic_useragent-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: mimic_useragent-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.9 Linux/6.8.9-100.fc38.x86_64

File hashes

Hashes for mimic_useragent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b3a93a91bdd1fc69606f22daddb7476faf5e9f100c1d46e72e1cc6fb7f8bd083
MD5 64609505b0ba1422b1aca34351c721d6
BLAKE2b-256 2411efefd26b553b73033889aa9d8ef3e5a5f683d52f10cda12c9cd2841d3d57

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page