Skip to main content

A python module that generate random user agent based on rules

Project description

python-rndua

PyPI version

A python module that generate random user agent based on rules

Why?

Most random user agent generator just randomly pick from a large list. This one is based on rule and software version lists, generate user agent that seems legit but may not actually exist. The goal is to generate user agent that seems as legit as possible but also keep code complexity low.

Currently supported user agent types

  • {Chrome, Firefox} on {Android, Windows, OS X}

How it works?

Besides the source code, data.md may give you some hints.

Basic usage

from rndua.rndua import RandomUAGenerator
rg=RandomUAGenerator()
rg.get_random_user_agent()

Advanced usage

See the source code, it's short.

Project details


Download files

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

Files for rndua, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size rndua-0.0.2-py3-none-any.whl (9.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rndua-0.0.2.tar.gz (8.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page