Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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 hashes
Filename, size rndua-0.0.2.tar.gz (8.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page