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.1.tar.gz
(9.0 kB
view details)
Built Distribution
File details
Details for the file randomuagents-1.0.1.tar.gz
.
File metadata
- Download URL: randomuagents-1.0.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a46f1256a079c8fa5a5151a5d025334aa9314f5172b050a19bb87d5bec3074c7 |
|
MD5 | 65e472d0c143c90623d2307863b54706 |
|
BLAKE2b-256 | edbfacbf436f5566c68252a36916d0e93a74adcbf6ad77b47095c3b1bdf2c600 |
File details
Details for the file RandomUAgents-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: RandomUAgents-1.0.1-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fda489d0e51c18210fddedbd8947dcd434aca9fdc568603b4bab9dfd55d05b8 |
|
MD5 | 995783ca7f8c71a238a6609212b2fe17 |
|
BLAKE2b-256 | 95906d26decf222aab64d786913c9f3b520e872e401d99c1020a1c781a15d827 |