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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: randomuagents-1.0.4.tar.gz
  • Upload date:
  • Size: 9.1 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.4.tar.gz
Algorithm Hash digest
SHA256 4663bd2f58b2ab5a34ad65f37cfbbb8d0fdbe3623fd8573e0c2339393062c63e
MD5 27dfb67f0e78f92eb6ae01b9da1bfc83
BLAKE2b-256 b94b9c1b713a7aa82cd9e09f0092e98ab17885ad1c52cc4dc5290c6497a9dae7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for randomuagents-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 636d6bb5dca49df1421ba5e6bf3bb850a2aba30565a9f23d6f7bd41f8bc3f424
MD5 15f17161d6034722d167758fa3eb6cf2
BLAKE2b-256 f1c4abbe9f2d99c8af9dd3aeb360b90eba1ff6fec0125028f37d91c642e92b78

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