fake_useragent

package module
v0.0.0-...-39865ca Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 6 Imported by: 0

README

fake_useragent

A simple fake useragent library in golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserAgent

func GetUserAgent(browser string) (string, error)

GetUserAgent retrieves a random agent for the specified browser

func RandomUserAgent

func RandomUserAgent() (string, error)

RandomUserAgent retrieves a random useragen from the list

Types

type Agent

type Agent struct {
	Percent   float32
	UserAgent string
	System    string
	Browser   string
	Version   float32
	OS        string
}

Jump to

Keyboard shortcuts

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