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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: randomuagents-1.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 5b6df81afbbf0570ee80b2dd01ded51e651aad72b0abab9f371ea5670b38f8ac
MD5 5a75bd1cb4b2c73704015a309f54ef9a
BLAKE2b-256 b0ee99780bc60fd9c6e7ddb2f933da86f695dbb27982ab5ef3e9729252de1fe9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for randomuagents-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d8800beb47307ca25f9203d623a694895ae07e90ccc1204ed50f046e2c2f4e3c
MD5 e62653702d4e7e2fc1d898145c11c250
BLAKE2b-256 0edec677fd4a404fe125ff7d4cb8e9ec5e203125585fe1939a485703bf888438

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