Documentation
¶
Overview ¶
Package chromesolver is a cloudfetch.Solver that clears challenges, including Managed and Interactive Challenges, in headless Chrome, clicking the Turnstile checkbox when one appears. It needs Chrome installed.
client := cloudfetch.New(cloudfetch.WithSolver(chromesolver.New()))
cf_clearance is tied to the IP, so with a proxy, pass chromedp.ProxyServer to WithAllocatorOptions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Solver)
Option configures a Solver.
func WithAllocatorOptions ¶
func WithAllocatorOptions(opts ...chromedp.ExecAllocatorOption) Option
WithAllocatorOptions adds Chrome options, such as chromedp.ProxyServer, over the defaults.
func WithTimeout ¶
WithTimeout sets how long one Solve may take, including starting Chrome. Defaults to 60s.