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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for mimic_useragent-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e294b1b1dc07959624a8b66097fb64308d378d2aa66fbf49b8afed2cdc71119 |
|
MD5 | 58ab6120ea4b9cd75ade3fed90042d22 |
|
BLAKE2b-256 | b57d1e1402a5a02646149497151d244a566ec9b429785c7e1c8c2e0a0ff7b665 |