package
0.0.0-20240719232512-a14a42c2ccca
Repository: https://github.com/vishnraj/go-scraper.git
Documentation: pkg.go.dev

# Functions

CommonRootChecks does checks for flags for root commands.
CommonWatchChecks checks if the common required flags for watch command are present - sub-commands check their own specific flags separately.
EmailContent will watch content and take action if content is available.
Log creates a logger that we can use in the app.
PrintContent fetches HTML content.

# Constants

DefaultCaptchaClickSelector default to click once captcha box appears.
DefaultCaptchaClickSleep default time (seconds) we sleep after a captcha click, to allow the captcha challenge to get loaded into the iframe.
DefaultCaptchaIframeWaitSelector default wait selector for captcha iframe.
DefaultCaptchaWaitSelector default to wait for captcha box on block.
DefaultInterval default time to wait (in seconds) when watching a selector.
DefaultRedisWriteTimeout default timeout (seconds) for writing to redis.
DefaultSubject to send email with.
DefaultUserDataDir default user data dir for non-headless mode.

# Variables

DefaultUserAgents The default user agents to send requests as.