Skip to main content

Library for fetching random user agents based on device type (desktop, mobile, etc.).

Project description

RandomUAgents

Library for fetching random user agents based on device type (desktop, mobile, etc.).

Installation

You can install the library using pip:

pip install randomuagents

Usage

Get random user-agent

ua_instance = UA()
random_ua = ua_instance._uGet()
print(random_ua)

Get random user-agent for desktop

ua_instance = UA("desktop")
random_ua = ua_instance._uGet()
print(random_ua)

Get random user-agent for mobile

ua_instance = UA("mobile")
random_ua = ua_instance._uGet()
print(random_ua)

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

randomuagents-1.0.5.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

randomuagents-1.0.5-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file randomuagents-1.0.5.tar.gz.

File metadata

  • Download URL: randomuagents-1.0.5.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for randomuagents-1.0.5.tar.gz
Algorithm Hash digest
SHA256 c51c78bf09920c69c37e943d22ee21eaaef1d53161702a1d5a1885b8895f967f
MD5 8b98b203585d33f03d618f68960e1343
BLAKE2b-256 41da7f7241596663e6b9d9db5c6d21d2765bd509d4e571c0de509ff230fd70cb

See more details on using hashes here.

File details

Details for the file randomuagents-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for randomuagents-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ed5a0c89cbafa79a72eda1be1bff44f232468fb66887e3ff0506544d2f3fc55e
MD5 7d772fe7ff80d89331fddd97aced86d2
BLAKE2b-256 3abef1c9b01ba0ad7f3e68ba47ebe828c5e92ce3d4a0747cd397e4bb71fcab71

See more details on using hashes here.

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