Simple user-agent generator.
Project description
mimic_user_agent
Funcion que retorna un 'user-agent' falso aleatorio o estático.
Uso
>>> from mimic_user_agent.mimicUserAgent import mimic_user_agent
>>> mimic_user_agent()
'Mozilla/5.0 (X11; Linux; i686 on x86_64; rv:112.0) Gecko/20100101 Firefox/112.0'
>>>
>>>
>>> mimic_user_agent(1)
'Mozilla/5.0 (Windows NT 10.0; x86; rv:107.0) Gecko/20100101 Firefox/107.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.0.tar.gz
(13.9 kB
view hashes)
Built Distribution
Close
Hashes for mimic_useragent-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95bb772c961cf92530c6dffe2d081aad6d5d6c215ac874030c31969470c7b6e4 |
|
MD5 | 9255547d994c77f5da24f25e6a592693 |
|
BLAKE2b-256 | 8a9fd89d5578321fec57b91e6a83c55257042a584a028721eff96c00ef13f2e3 |