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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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