Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/eddycjy/fake-useragent
/ functions
Functions
83 in github.com/eddycjy/fake-useragent
⨍
Functions
83
◇
Types & classes
9
↓ 12 callers
Method
GetRandom
(key string)
useragent/warehouse.go:27
↓ 4 callers
Method
Get
(url string)
downloader/http.go:14
↓ 4 callers
Function
NewBrowser
(client Client, cache Cache)
b.go:36
↓ 4 callers
Method
Read
()
useragent/cache/file.go:24
↓ 3 callers
Method
GetAll
()
useragent/warehouse.go:23
↓ 3 callers
Method
IsExist
()
useragent/cache/file.go:50
↓ 2 callers
Function
AppendUrl
(url string)
scheduler/warehouse.go:16
↓ 2 callers
Method
Chrome
()
browser.go:64
↓ 2 callers
Method
GetSpider
()
spiders/browser.go:32
↓ 2 callers
Method
IOS
()
browser.go:88
↓ 2 callers
Method
Random
()
browser.go:60
↓ 2 callers
Method
Remove
()
useragent/cache/file.go:41
↓ 2 callers
Method
Write
(data []byte)
useragent/cache/file.go:28
↓ 2 callers
Method
WriteJson
(v interface{})
useragent/cache/file.go:32
↓ 1 callers
Function
Android
()
browser.go:28
↓ 1 callers
Method
Android
()
browser.go:80
↓ 1 callers
Method
AppendBrowser
(maxPage int)
spiders/browser.go:43
↓ 1 callers
Function
Chrome
()
browser.go:12
↓ 1 callers
Function
Computer
()
browser.go:52
↓ 1 callers
Method
Computer
()
browser.go:104
↓ 1 callers
Function
CountUrl
()
scheduler/warehouse.go:20
↓ 1 callers
Function
Firefox
()
browser.go:20
↓ 1 callers
Method
Firefox
()
browser.go:72
↓ 1 callers
Method
Get
(key string)
useragent/warehouse.go:19
↓ 1 callers
Method
Get
()
useragent/cache/rawgithub.go:26
↓ 1 callers
Method
GetAllRandom
()
useragent/warehouse.go:38
↓ 1 callers
Function
GetTempDir
()
useragent/cache/file.go:63
↓ 1 callers
Function
IOS
()
browser.go:36
↓ 1 callers
Function
IPad
()
browser.go:48
↓ 1 callers
Method
IPad
()
browser.go:100
↓ 1 callers
Function
IPhone
()
browser.go:44
↓ 1 callers
Method
IPhone
()
browser.go:96
↓ 1 callers
Function
InternetExplorer
()
browser.go:16
↓ 1 callers
Method
InternetExplorer
()
browser.go:68
↓ 1 callers
Method
IsExist
(resp *http.Response)
useragent/cache/rawgithub.go:44
↓ 1 callers
Function
Linux
()
browser.go:40
↓ 1 callers
Method
Linux
()
browser.go:92
↓ 1 callers
Function
MacOSX
()
browser.go:32
↓ 1 callers
Method
MacOSX
()
browser.go:84
↓ 1 callers
Function
Mobile
()
browser.go:56
↓ 1 callers
Method
Mobile
()
browser.go:108
↓ 1 callers
Function
NewFileCache
(dir string, name string)
useragent/cache/file.go:16
↓ 1 callers
Function
NewRawCache
(dir string, name string)
useragent/cache/rawgithub.go:18
↓ 1 callers
Function
PopUrl
()
scheduler/warehouse.go:5
↓ 1 callers
Function
Random
()
browser.go:8
↓ 1 callers
Function
Safari
()
browser.go:24
↓ 1 callers
Method
Safari
()
browser.go:76
↓ 1 callers
Method
Set
(key, value string)
useragent/warehouse.go:54
↓ 1 callers
Method
SetData
(data map[string][]string)
useragent/warehouse.go:60
↓ 1 callers
Method
StartBrowser
TODO: use and limit goroutine.
spiders/browser.go:56
↓ 1 callers
Method
load
()
b.go:54
Function
GetDelay
(delay time.Duration)
setting/setting.go:31
Function
GetMaxPage
(maxPage int)
setting/setting.go:23
Function
GetTimeout
(timeout time.Duration)
setting/setting.go:39
Function
NewBrowserSpider
()
spiders/browser.go:28
Method
Read
(body io.ReadCloser)
useragent/cache/rawgithub.go:40
Function
TestAndroid
(t *testing.T)
browser_test.go:38
Function
TestAppendUrl
(t *testing.T)
scheduler/warehouse_test.go:5
Function
TestBrowser_Chrome
(t *testing.T)
browser_test.go:100
Function
TestBrowser_IOS
(t *testing.T)
browser_test.go:112
Function
TestBrowser_Random
(t *testing.T)
browser_test.go:86
Function
TestChrome
(t *testing.T)
browser_test.go:14
Function
TestComputer
(t *testing.T)
browser_test.go:74
Function
TestCountUrl
(t *testing.T)
scheduler/warehouse_test.go:16
Function
TestDownload_Get
(t *testing.T)
downloader/http_test.go:8
Function
TestFile_IsExist
(t *testing.T)
useragent/cache/file_test.go:38
Function
TestFile_Read
(t *testing.T)
useragent/cache/file_test.go:19
Function
TestFile_Remove
(t *testing.T)
useragent/cache/file_test.go:31
Function
TestFile_Write
(t *testing.T)
useragent/cache/file_test.go:12
Function
TestFirefox
(t *testing.T)
browser_test.go:26
Function
TestIOS
(t *testing.T)
browser_test.go:50
Function
TestIPad
(t *testing.T)
browser_test.go:68
Function
TestIPhone
(t *testing.T)
browser_test.go:62
Function
TestInternetExplorer
(t *testing.T)
browser_test.go:20
Function
TestLinux
(t *testing.T)
browser_test.go:56
Function
TestMacOSX
(t *testing.T)
browser_test.go:44
Function
TestMobile
(t *testing.T)
browser_test.go:80
Function
TestPopUrl
(t *testing.T)
scheduler/warehouse_test.go:10
Function
TestRandom
(t *testing.T)
browser_test.go:8
Function
TestRaw_Get
(t *testing.T)
useragent/cache/rawgithub_test.go:13
Function
TestRaw_IsExist
(t *testing.T)
useragent/cache/rawgithub_test.go:25
Function
TestRaw_Read
(t *testing.T)
useragent/cache/rawgithub_test.go:32
Function
TestSafari
(t *testing.T)
browser_test.go:32