Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrElementNotVisible = errors.New("element not visible")
View Source
var ErrEmptyPage = errors.New("page is empty")
View Source
var ErrNoCrawlingAction = errors.New("no more actions to crawl")
Functions ¶
This section is empty.
Types ¶
type Crawler ¶
type Crawler struct {
// contains filtered or unexported fields
}
func (*Crawler) GetCrawlGraph ¶
func (c *Crawler) GetCrawlGraph() *graph.CrawlGraph
type Options ¶
type Options struct {
ChromiumPath string
MaxBrowsers int
MaxDepth int
PageMaxTimeout time.Duration
NoSandbox bool
ShowBrowser bool
SlowMotion bool
MaxCrawlDuration time.Duration
MaxFailureCount int
Trace bool
CookieConsentBypass bool
AutomaticFormFill bool
// EnableDiagnostics enables the diagnostics mode
// which writes diagnostic information to a directory
// specified by the DiagnosticsDir optionally.
EnableDiagnostics bool
DiagnosticsDir string
Logger *slog.Logger
ScopeValidator browser.ScopeValidator
RequestCallback func(*output.Result)
ChromeUser *user.User
}
Click to show internal directories.
Click to hide internal directories.