Scrapes the most common useragents and returns a random one of them when asked for.
Go to file
Andreas Schulte 98dbbf54f3
+ RenewUseragents()
2024-01-17 22:33:57 +01:00
LICENSE initial commit 2023-10-27 16:03:42 +02:00
README.md initial commit 2023-10-27 16:03:42 +02:00
go.mod initial commit 2023-10-27 16:03:42 +02:00
go.sum initial commit 2023-10-27 16:03:42 +02:00
useragents.go + RenewUseragents() 2024-01-17 22:33:57 +01:00
useragents_test.go + RenewUseragents() 2024-01-17 22:33:57 +01:00

README.md

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