Skip to main content

Random user agent

Project description

RANDOM USER AGENTS © 2023

telegram badge telegram badge telegram badge

Random User Agents is a python library that provides list of user agents, from a collection of more than 326,000+ user agents, based on filters.

INSTALLATION

You can install random useragent by running the following command:

  pip install uxagent

USAGE

from Uxagent import UserAgent
from Uxagent import SoftwareName
from Uxagent import OperatingSystem

software = [ SoftwareName.APP024.value ]

osystems = [ OperatingSystem.COD001.value, OperatingSystem.COD002.value ]

rotators = UserAgent(limit=100, operating_system=osystems, software_names=software)

# GET RANDOM USER AGENT
user_agent = rotators.get_user_agent()
print(user_agent)

# GET LIST OF USER AGENTS
user_agents = rotators.get_user_agents()
print(user_agents)

All filters are available > here

LICENSE

The MIT License. Please see License File for more information.

USER AGENTS SOURCE

Special thanks to whatismybrowser for providing real user agents.

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

uxagent-0.1.4.tar.gz (7.9 MB view hashes)

Uploaded Source

Built Distribution

uxagent-0.1.4-py3-none-any.whl (7.9 MB 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