fake-useragent icon indicating copy to clipboard operation
fake-useragent copied to clipboard

A wide variety of random useragents

Results 7 fake-useragent issues
Sort by recently updated
recently updated
newest added

``` panic: runtime error: index out of range [-1] goroutine 102 [running]: math/rand.(*rngSource).Uint64(...) /opt/homebrew/Cellar/go/1.18.3/libexec/src/math/rand/rng.go:249 math/rand.(*rngSource).Int63(0xffffffffffffffff?) /opt/homebrew/Cellar/go/1.18.3/libexec/src/math/rand/rng.go:234 +0x90 math/rand.(*Rand).Int63(...) /opt/homebrew/Cellar/go/1.18.3/libexec/src/math/rand/rand.go:84 math/rand.(*Rand).Int31(...) /opt/homebrew/Cellar/go/1.18.3/libexec/src/math/rand/rand.go:98 math/rand.(*Rand).Int31n(0x140003b0060, 0xbb8) /opt/homebrew/Cellar/go/1.18.3/libexec/src/math/rand/rand.go:133 +0x50 math/rand.(*Rand).Intn(0x140016a7a18?, 0x14002236be0?) /opt/homebrew/Cellar/go/1.18.3/libexec/src/math/rand/rand.go:171 +0x34 github.com/EDDYCJY/fake-useragent/useragent.(*useragent).GetAllRandom(0x140016a7ab8?)...

A simple function, 10 sentences can be written, you see you have a lot of kakaka, too much is also a remote address download cache, Chinese mainland can not visit,...

求更新一下,的确如楼下一样,返回值全是空!请求作者更新

GOROOT=C:\Go #gosetup GOPATH=C:\Users\Administrator\go #gosetup C:\Go\bin\go.exe build -o C:\Users\Administrator\AppData\Local\Temp\___go_build_demo_02_demo1.exe demo_02/demo1 #gosetup C:\Users\Administrator\AppData\Local\Temp\___go_build_demo_02_demo1.exe #gosetup 2020/12/02 15:02:20 Random: 2020/12/02 15:02:20 Chrome: 2020/12/02 15:02:20 IE: 2020/12/02 15:02:20 Firefox: 2020/12/02 15:02:20 Safari: 2020/12/02 15:02:20 Android:...

`package main import ( browser "github.com/eddycjy/fake-useragent" "log" ) func main() { random := browser.Random() log.Printf("Random: %s", random) chrome := browser.Chrome() log.Printf("Chrome: %s", chrome) } ` ` out put GOROOT=/usr/local/go #gosetup...

Hi, Any way to get specific version of android user-agent?

Thanks for this library! I noticed two drawbacks and prepared a fix, please consider this for merging. - remove unnecessary slice allocations on each UA.GetAllRandom() call (about 3000 length slice...