useragent

command module
v0.0.0-...-a88c152 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 4 Imported by: 0

README

User Agent

Description

This go program is used to generalize a user agent csv following the next format:

user_agent count
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 1000
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67 500

The program will output a generalized user agent csv like the following:

normalized_user_agent count
Android/10.0 1000
Windows/10.0 500

Requirements

This application was tested on go1.20 but should work on any go version with modules support.

The application will read and normalize all csv files within a in folder in the project root. All normalized csv files will be saved in an out folder in the project's root with the same name as in the input folder.

How to run

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL