Skip to main content

A python module that generate random user agent based on rules

Project description

python-rndua

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.

Source Distribution

rndua-0.0.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

rndua-0.0.1-py3-none-any.whl (5.9 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