Skip to content

orbulant/random-user-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-user-agent

A Go package that generates random, realistic user agent strings for common browsers.

This is useful for bypassing API restrictions that block requests with the same or missing User-Agent header in the HTTP request

Installation

go get github.com/orbulant/random-user-agent

Usage

package main

import (
    "fmt"
    "github.com/orbulant/random-user-agent/useragent"
)

func main() {
    ua := useragent.New()
    randomUserAgent := ua.GetRandomAgent()
    fmt.Println(randomUserAgent)
}

About

Random user agent generator for Go

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages