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-0.0.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

RandomUAgents-0.0.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file RandomUAgents-0.0.2.tar.gz.

File metadata

  • Download URL: RandomUAgents-0.0.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for RandomUAgents-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7922ecb763eceee69c7975347156ab57b77cb6d7f03e6cbcdebf202cb34009a0
MD5 59ba13f4970a1b6546dcd668eb0a0143
BLAKE2b-256 e243c854e401ea88f60f1b39d6f8159c39e4b3b6d0f33f4f1eeb6cd74af7e6a9

See more details on using hashes here.

File details

Details for the file RandomUAgents-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for RandomUAgents-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9afdacfc56741b56c5281556a8ba694a0b514893f65f1b78d1ba51a2c2578d15
MD5 7a4dd7b4d38fcc09dd4baa757e32ddb1
BLAKE2b-256 f585b3dc7866bdeaeb76909c9f0b912d01fc2a2f3d03de925bf30bab8a004da0

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