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

Uploaded Source

Built Distribution

randomuagents-1.0.6-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: randomuagents-1.0.6.tar.gz
  • Upload date:
  • Size: 10.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.6.tar.gz
Algorithm Hash digest
SHA256 4bb52797ebc0ef7a29e4f8cf9885749175c66648fd3eb60fb92b2a22119e0c6d
MD5 278ce5c018ccde4442e21226e37cd7ea
BLAKE2b-256 16a953c055d23b57ae193705970b8be57ce871e39da8ced28af8d41d857c5653

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for randomuagents-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9161920b655157ef59c74f7a362122534cd5ac04e72c06e0520d951d1e079150
MD5 af268d14945de0a69f2724a997b90bcc
BLAKE2b-256 034e0e55f9015234afacd022fbdce261f3384af8654f8dba286f4a4c0ca27c9c

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