Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rangertaha/uagent
Get random user agent string or select from category, mobile, browser, crawlers, libraries, link checkers...
https://github.com/rangertaha/uagent
Last synced: about 1 month ago
JSON representation
Get random user agent string or select from category, mobile, browser, crawlers, libraries, link checkers...
- Host: GitHub
- URL: https://github.com/rangertaha/uagent
- Owner: rangertaha
- License: mit
- Created: 2014-06-28T02:21:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-30T16:00:41.000Z (about 8 years ago)
- Last Synced: 2024-03-01T07:35:38.810Z (10 months ago)
- Language: Python
- Homepage:
- Size: 406 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Random User Agent Strings
===========This module allows you to select a random user agent from a list of categories. All categories total to 10886 user agent strings.
Categories of User Agent Strings
-----------------------* 9420 Browsers
* 508 Mobile
* 141 Libraries
* 442 Crawlers
* 17 Validators
* 217 Email Clients
* 13 Feed Readers
* 34 Link Checkers
* 34 Offline
* 60 OthersExample
-------The following example selects a random user agent from all the categories.
from uagent import UserAgent
uas = UserAgnet()
# Returns random user agent, selected from all the categories
ua = uas.random()Browsers
________# Initialize and select the 'browsers' category
uas = UserAgent('browsers')# Returns random user agent from this category
ua = uas.random()