MCPcopy Create free account

hub / github.com/chromedp/examples / functions

Functions57 in github.com/chromedp/examples

↓ 6 callersFunctionpad
(s, v string, n int)
gen.go:109
↓ 2 callersFunctionmax
(a, b int)
gen.go:102
↓ 1 callersFunctioncookieServer
cookieServer creates a simple HTTP server that logs any passed cookies.
cookie/main.go:46
↓ 1 callersFunctionelementScreenshot
elementScreenshot takes a screenshot of a specific element.
screenshot/main.go:42
↓ 1 callersFunctionemojiFlag
(code string)
geoip/main.go:153
↓ 1 callersFunctionfindNode
(val string, nodes []*cdp.Node)
forecast/main.go:198
↓ 1 callersFunctionfullScreenshot
fullScreenshot takes a screenshot of the entire browser viewport. Note: chromedp.FullScreenshot overrides the device's emulation settings. Use device
screenshot/main.go:53
↓ 1 callersFunctiongetMap
(ctx context.Context, timeout time.Duration, lat, lng, zoom, scale float64)
geoip/main.go:103
↓ 1 callersFunctionheaderServer
headerServer is a simple HTTP server that displays the passed headers in the html.
headers/main.go:45
↓ 1 callersFunctionlistAwesomeGoProjects
listAwesomeGoProjects is the highest level logic for browsing to the awesome-go page, finding the specified section sect, and retrieving the associate
logic/main.go:41
↓ 1 callersFunctionnewProxy
newProxy creates a proxy that requires authentication.
proxy/main.go:96
↓ 1 callersFunctionprintNodes
printNodes recurses the node tree and prints the nodes as a tree. Note that this same functionality is available in the chromedp package as [chromedp
subtree/main.go:89
↓ 1 callersFunctionprintToPDF
print a specific pdf page.
pdf/main.go:33
↓ 1 callersFunctionrun
(ctx context.Context, verbose bool, urlstr, nav string, d time.Duration)
remote/main.go:32
↓ 1 callersFunctionrun
(ctx context.Context, verbose bool, wait time.Duration, out string, urls ...string)
multi/main.go:32
↓ 1 callersFunctionrun
(ctx context.Context, verbose bool, timeout time.Duration, query, lang, unit, typ string, day int, scale float
forecast/main.go:62
↓ 1 callersFunctionrun
(ctx context.Context, verbose bool, timeout time.Duration, scale float64, padding int, out string)
fast/main.go:37
↓ 1 callersFunctionrun
(ctx context.Context, verbose bool, timeout time.Duration, lang string, zoom, scale float64, args []string)
geoip/main.go:42
↓ 1 callersFunctionrun
(ctx context.Context, verbose bool, timeout time.Duration)
latlon/main.go:28
↓ 1 callersFunctionsendkeys
sendkeys sends keys to the server and extracts 4 values from the html page.
keys/main.go:41
↓ 1 callersFunctionsetcookies
setcookies returns a task to navigate to a host with the passed cookies set on the network request.
cookie/main.go:65
↓ 1 callersFunctionsetheaders
setheaders returns a task list that sets the passed headers.
headers/main.go:59
↓ 1 callersFunctionsnapshot
(wait time.Duration, urlstr string, buf *[]byte)
multi/main.go:73
↓ 1 callersFunctionsubmit
(urlstr, sel, q string, res *string)
submit/main.go:28
↓ 1 callersFunctiontestServer
testServer is a simple HTTP server that serves a static html page.
visible/main.go:71
↓ 1 callersFunctiontestServer
testServer is a simple HTTP server that displays the passed headers in the html.
keys/main.go:57
↓ 1 callersFunctiontravelSubtree
travelSubtree illustrates how to ask chromedp to populate a subtree of a node. https://github.com/chromedp/chromedp/issues/632#issuecomment-654213589
subtree/main.go:66
↓ 1 callersFunctionupload
(urlstr string, filepath string, sz *string)
upload/main.go:53
↓ 1 callersFunctionuploadServer
(addr string, result chan int)
upload/main.go:62
↓ 1 callersFunctionvisible
(host string)
visible/main.go:34
MethodRoundTrip
(r *http.Request)
proxy/main.go:124
Functioninit
()
forecast/main.go:217
Functioninit
()
geoip/main.go:169
Functionmain
()
gen.go:29
Functionmain
()
download_file/main.go:23
Functionmain
()
screenshot/main.go:13
Functionmain
()
emulate/main.go:14
Functionmain
()
click/main.go:13
Functionmain
()
remote/main.go:20
Functionmain
()
multi/main.go:21
Functionmain
()
download_image/main.go:20
Functionmain
()
pdf/main.go:15
Functionmain
()
forecast/main.go:37
Functionmain
()
submit/main.go:13
Functionmain
()
subtree/main.go:20
Functionmain
()
proxy/main.go:17
Functionmain
()
eval/main.go:12
Functionmain
()
fast/main.go:24
Functionmain
()
logic/main.go:16
Functionmain
()
cookie/main.go:20
Functionmain
()
headers/main.go:17
Functionmain
()
upload/main.go:17
Functionmain
()
geoip/main.go:29
Functionmain
()
visible/main.go:16
Functionmain
()
latlon/main.go:18
Functionmain
()
keys/main.go:16
Functionmain
()
text/main.go:13