useragents/README.md
2023-10-27 16:03:42 +02:00

380 B

Useragents

Scrapes the most common useragents from useragents.me and returns a random one of them when asked for.

Usage

import (
	"git.0x0001f346.de/andreas/useragents"
)

fmt.Println(useragents.GetRandomUserAgent()) // Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36