semvec/pypi-packages huggingface dataset:
randomuagents 1.0.6
Library for fetching random user agents based on device type (desktop, mobile, etc.).
Requires Python: >=3.6

# RandomUAgents

Library for fetching random user agents based on device type (desktop, mobile, etc.).

## Installation

You can install the library using `pip`:

```bash
pip install randomuagents
```

# Usage

## Get random user-agent

```bash
ua_instance = UA()
random_ua = ua_instance._uGet()
print(random_ua)
```
## Get random user-agent for desktop

```bash
ua_instance = UA("desktop")
random_ua = ua_instance._uGet()
print(random_ua)
```
## Get random user-agent for mobile

```bash
ua_instance = UA("mobile")
random_ua = ua_instance._uGet()
print(random_ua)
```