https://github.com/andrey-lawyer/java-useragent-parser
This project is a customizable tool for parsing User-Agent strings to extract detailed information about browsers, versions, and other key attributes.
https://github.com/andrey-lawyer/java-useragent-parser
data-parsing developer-tools pattern-matching ua-parser user-agent-detection user-agent-parser
Last synced: 3 months ago
JSON representation
This project is a customizable tool for parsing User-Agent strings to extract detailed information about browsers, versions, and other key attributes.
- Host: GitHub
- URL: https://github.com/andrey-lawyer/java-useragent-parser
- Owner: andrey-lawyer
- Created: 2025-01-10T14:10:41.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-20T10:14:49.000Z (4 months ago)
- Last Synced: 2025-01-20T10:26:37.782Z (4 months ago)
- Topics: data-parsing, developer-tools, pattern-matching, ua-parser, user-agent-detection, user-agent-parser
- Language: Java
- Homepage: https://useragent-parser.onrender.com/api/user-agent/parse
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User-Agent Parser
This project is a customizable tool for parsing User-Agent strings to extract detailed information about browsers, versions, and other key attributes. It is specifically designed to handle a wide variety of User-Agent patterns.
## Table of Contents
- [Technologies](#technologies)
- [Installation](#installation)
- [Running the Project](#running-the-project)
- [API Reference](#api-reference)## Technologies
- Spring Boot (Java)
- Docker
- Redis## Installation
1. Clone the repository:
```bash
git clone https://github.com/andrey-lawyer/java-useragent-parser
```## Running the Project
To start the project, run:
```bash
docker-compose up
```
Once the containers are up and running, you can access the application at the following addresses:http://localhost:8080
## API Reference
#### Endpoint to parse user agent from the "User-Agent" header
```http
GET /api/user-agent/parse-header
```#### Endpoint to parse user agent from query parameter
```http
GET /api/user-agent/parse-query
```
query parameters:
- userAgent (required): The User-Agent string to parse.