This library is used to make it easier for developers or users to get random user agents from https://useragents.io.
Project description
GET-USERAGENTS
This library is used to make it easier for developers or users to get random user agents from https://useragents.io.
Installation
You can install get-useragents by running the following command:
pip install get-useragents
Or you can download direct from Github and install it manually.
Usage
from get_useragents import useragents
# you can change the limit
ua = useragents.UserAgents(limit=500)
# function to get all ua as per limit from GetListUserAgents
user_agents = ua.GetUserAgents()
# function for get random ua from GetListUserAgents
random_ua = ua.RandomUserAgents()
print(random_ua)
Function
- Get more than 100+ user agents
- Get a random user agent
List All Directory
.get_useragents
├── LICENSE
├── README.md
├── cache
│ ├── browser.txt
│ └── useragents.txt
├── example
│ └── test.py
├── get_useragents
│ ├── __init__.py
│ ├── settings.py
│ └── useragents.py
├── setup.cfg
├── setup.py
└── ua.py
This tree is to make it easier for you to see the files in all directories.
Change Log
-
Version 0.6
- Fix Index Error
- Re-upload
-
Version 0.7
- Using cloudscraper (tested)
- Re-upload
Stats
License
The MIT License (MIT). Please see License File for more information.
User Agent Source
special thanks to useragents.io for providing real user agents.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
get_useragents-0.7.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for get_useragents-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38b0f2fee727a16d9fb40e82b070a132fee1ced5d313d1ce376655b63f61ca5 |
|
MD5 | 68ca3f7bbb8151733b8e3d8ec53947bf |
|
BLAKE2b-256 | 7d5f59458f7b54eb3532d8f6d1662acef52b2ce62622bb6e17a91f6f1ae4a622 |