Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chromedp/examples
/ functions
Functions
57 in github.com/chromedp/examples
⨍
Functions
57
◇
Types & classes
3
↓ 6 callers
Function
pad
(s, v string, n int)
gen.go:109
↓ 2 callers
Function
max
(a, b int)
gen.go:102
↓ 1 callers
Function
cookieServer
cookieServer creates a simple HTTP server that logs any passed cookies.
cookie/main.go:46
↓ 1 callers
Function
elementScreenshot
elementScreenshot takes a screenshot of a specific element.
screenshot/main.go:42
↓ 1 callers
Function
emojiFlag
(code string)
geoip/main.go:153
↓ 1 callers
Function
findNode
(val string, nodes []*cdp.Node)
forecast/main.go:198
↓ 1 callers
Function
fullScreenshot
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 callers
Function
getMap
(ctx context.Context, timeout time.Duration, lat, lng, zoom, scale float64)
geoip/main.go:103
↓ 1 callers
Function
headerServer
headerServer is a simple HTTP server that displays the passed headers in the html.
headers/main.go:45
↓ 1 callers
Function
listAwesomeGoProjects
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 callers
Function
newProxy
newProxy creates a proxy that requires authentication.
proxy/main.go:96
↓ 1 callers
Function
printNodes
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 callers
Function
printToPDF
print a specific pdf page.
pdf/main.go:33
↓ 1 callers
Function
run
(ctx context.Context, verbose bool, urlstr, nav string, d time.Duration)
remote/main.go:32
↓ 1 callers
Function
run
(ctx context.Context, verbose bool, wait time.Duration, out string, urls ...string)
multi/main.go:32
↓ 1 callers
Function
run
(ctx context.Context, verbose bool, timeout time.Duration, query, lang, unit, typ string, day int, scale float
forecast/main.go:62
↓ 1 callers
Function
run
(ctx context.Context, verbose bool, timeout time.Duration, scale float64, padding int, out string)
fast/main.go:37
↓ 1 callers
Function
run
(ctx context.Context, verbose bool, timeout time.Duration, lang string, zoom, scale float64, args []string)
geoip/main.go:42
↓ 1 callers
Function
run
(ctx context.Context, verbose bool, timeout time.Duration)
latlon/main.go:28
↓ 1 callers
Function
sendkeys
sendkeys sends keys to the server and extracts 4 values from the html page.
keys/main.go:41
↓ 1 callers
Function
setcookies
setcookies returns a task to navigate to a host with the passed cookies set on the network request.
cookie/main.go:65
↓ 1 callers
Function
setheaders
setheaders returns a task list that sets the passed headers.
headers/main.go:59
↓ 1 callers
Function
snapshot
(wait time.Duration, urlstr string, buf *[]byte)
multi/main.go:73
↓ 1 callers
Function
submit
(urlstr, sel, q string, res *string)
submit/main.go:28
↓ 1 callers
Function
testServer
testServer is a simple HTTP server that serves a static html page.
visible/main.go:71
↓ 1 callers
Function
testServer
testServer is a simple HTTP server that displays the passed headers in the html.
keys/main.go:57
↓ 1 callers
Function
travelSubtree
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 callers
Function
upload
(urlstr string, filepath string, sz *string)
upload/main.go:53
↓ 1 callers
Function
uploadServer
(addr string, result chan int)
upload/main.go:62
↓ 1 callers
Function
visible
(host string)
visible/main.go:34
Method
RoundTrip
(r *http.Request)
proxy/main.go:124
Function
init
()
forecast/main.go:217
Function
init
()
geoip/main.go:169
Function
main
()
gen.go:29
Function
main
()
download_file/main.go:23
Function
main
()
screenshot/main.go:13
Function
main
()
emulate/main.go:14
Function
main
()
click/main.go:13
Function
main
()
remote/main.go:20
Function
main
()
multi/main.go:21
Function
main
()
download_image/main.go:20
Function
main
()
pdf/main.go:15
Function
main
()
forecast/main.go:37
Function
main
()
submit/main.go:13
Function
main
()
subtree/main.go:20
Function
main
()
proxy/main.go:17
Function
main
()
eval/main.go:12
Function
main
()
fast/main.go:24
Function
main
()
logic/main.go:16
Function
main
()
cookie/main.go:20
Function
main
()
headers/main.go:17
Function
main
()
upload/main.go:17
Function
main
()
geoip/main.go:29
Function
main
()
visible/main.go:16
Function
main
()
latlon/main.go:18
Function
main
()
keys/main.go:16
Function
main
()
text/main.go:13