This library is used to make it easier for developers or users to get random user agents
Project description
GET-USERAGENTS
This library is used to make it easier for developers or users to get random user agents
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 string limit '100' to max limit which is '1000'
# to see available devices, check: https://github.com/g4rzk/get_useragents#list-device
ua = useragents.Get_UA(device="chrome", limit=100)
# to get all user agents according to the limit
all_ua = ua.GetUserAgents()
# to get a random user agent from limit
random_ua = ua.RandomUserAgents()
print(random_ua)
List Device
- Chrome
- Mozilla
- Dekstop
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
- Re-upload
-
Version 0.8
- New list device user agent
- Fixed Bug and 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for get_useragents-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc450a2b29cae378bed80a259712f889255b5a3b1938bef5445fa1bbb4347e5b |
|
MD5 | 8b98431a14f6004a60e4341c4e293415 |
|
BLAKE2b-256 | 786f742c1fffd5dc76a6131ded082f8db1dec93dbe7517053bedfd9a7b1c8728 |