Skip to main content

Automatically Generate User agents

Project description

userAgentRandomizer

Automatically Generate User agents

Installation

pip install userAgentRandomizer

To Use:

from userAgentRandomizer import userAgents

ua = userAgents()

random_useragent = ua.random()

print(random_useragent)

Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:5.0) Gecko/20110619 Firefox/5.0

print(ua.count())

4513

Advanced Features:

ua.random can pass one of the following options to 'engine', ["Chrome","Firefox","Edge","Opear","Safari"] - if no option selected it will return one at random.

print(ua.random('Firefox'))

Mozilla/5.0 (Windows; U; Windows NT 6.1; hu; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 (.NET CLR 3.5.30729)

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

userAgentRandomizer-0.1.8.tar.gz (36.3 kB view hashes)

Uploaded Source

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