Skip to main content

Simple user-agent generator.

Project description

mimic_user_agent

Funcion que retorna un 'user-agent' falso aleatorio o estático.

Uso

>>> from mimic_useragent import mimic_user_agent
>>> mimic_user_agent()
'Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0'
>>>
>>> mimic_user_agent(seed=10)
'Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:112.0) Gecko/20100101 Firefox/112.0'

Recibe un parámetro int para el uso de una seed, por defecto es None.


Aclaración:

Por ahora, solamente genera user-agent Firefox.


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.2.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

mimic_useragent-0.1.2-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