# README
useragent
A comprehensive and categorized collection of User Agents.
Installation Instructions
To install the useragent tool, use the following command:
go install -v github.com/projectdiscovery/useragent/cmd/ua@latest
Usage
To display help for the tool, use the following command:
ua -h
This will display all the flags supported by the tool:
ua is a straightforward tool to query and filter user agents
Usage:
./ua [flags]
Flags:
-list list all the categorized tags of user-agent
-l, -limit int number of user-agent to list (use -1 to list all) (default 10)
-t, -tag string[] list user-agent for given tag
The useragent tool is designed to be simple and efficient, making it easy to query and filter user agents based on your specific needs.
Credits
This tool utilizes user agent data obtained from WhatIsMyBrowser.com.
# Functions
Apple checks if the user agent has typical apple tags.
Bot checks if the user agent has typical bot tags.
Chrome checks if the user agent has typical chrome tags.
Computer checks if the user agent has typical computer tags.
ContainsTags returns true if the user agent contains all provided tags.
ContainsTagsAny returns true if the user agent contains any of the provided tags.
Google Checks if the user agent has typical GoogleBot tags.
Legacy checks if the user agent falls under legacy category.
Mobile checks if the user agent has typical mobile tags.
Mozilla checks if the user agent has typical mozilla firefox tags.
Pick n items randomly from the available ones.
No description provided by the author
Pick n items randomly for the available ones with optional filtering.
Safari checks if the user agent has typical safari tags.
Windows checks if the user agent has typical windows tags.
# Variables
FilterMap contains filter and its respective function signature.
UserAgents of the package.
# Type aliases
Filter represent the function signature for a filter.