PowerShell module for generating random User Agents.
$agents = Get-UserAgentOutput
ua                          : Mozilla/5.0 (iPhone; CPU iPhone OS 18_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Mobile/15E148 Safari/604.1
percent                     : 0.0969801619581542
type                        : mobile
device_brand                : Apple
browser                     : Mobile Safari
browser_version             : 18.1.1.0
browser_version_major_minor : 18.1
os                          : iOS
os_version                  : 18.1.1.0
platform                    : iPhone
Module comes with bundled user-agents.dat file which contains different User Agent entries.
The process of creating it:
- Download the version of user-agents.json from user-agents
- Preprocess using uap-csharp
- Serialize into an XML-based representation (Common Language Infrastructure (CLI)) of all the objects
- Optimize for smaller size
- Store as a file user-agents.dat
This project makes use of the following project
- user-agents by intoli A JavaScript library for generating random user agents with data that's updated daily.
- uap-csharp by ua-parser C# implementation of ua-parser
MIT License © Alan Płócieniak