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

Uploaded Source

Built Distribution

RandomUAgents-1.0.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for randomuagents-1.0.2.tar.gz
Algorithm Hash digest
SHA256 86cba7f2f8700cd4f55ade14a5d839799440f59dc498efc9b4529ab038bb0689
MD5 7cc12fbd602021b302fcceb9457a1b07
BLAKE2b-256 0c7b7243a85db6e0f96fbfd4fa68fe5e85f0acd244c8e9a797d8009cb8cad15d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for RandomUAgents-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff7fe3b0e738500babb738c80c02597d16858ee0a73cacef010d18a6c7e06b6d
MD5 7719544b909f87013aa106b52621462a
BLAKE2b-256 95a82c090d76266d58a3eec3b7de93c37dfa57b0ccc5b9a4d40a6e0599116b9e

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