impersonateutil

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 默认对站点的 http 请求模仿最新版 Chrome Windows 11 x64 en-US 环境
	DEFAULT_IMPERSONATE = "chrome122"
)

Variables

This section is empty.

Functions

func GetAllProfileNames

func GetAllProfileNames() (names string)

Get all available impersonate profile names, joined by ","

Types

type Profile

type Profile struct {
	// "chrome", "firefox", "opera", "safari", "edge", "ios", "android"
	Name          string
	Navigator     string
	Ja3           string
	H2fingerprint string
	Headers       [][]string // use "\n" as placeholder for order; use "" (empty) to delete a header
	Comment       string
}

func GetProfile

func GetProfile(name string) *Profile

GetProfile get impersonate profile by name. If name is empty, return default profile. If name is not empty but corresponding profile does not exists, return nil.

func (*Profile) Print

func (p *Profile) Print()

Jump to

Keyboard shortcuts

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