Documentation
¶
Index ¶
- func CaptureScreenshot(ctx context.Context, browser *headless.Requester, ...) ([]byte, error)
- func ComputeScreenshotPerceptualHash(pngBytes []byte) (string, error)
- func ExtractHTMLTitle(html string) string
- func PerformHTMLPageCapture(ctx context.Context, config *common.SendHttpRequestConfig) (*common.HttpRequestResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureScreenshot ¶
func CaptureScreenshot(ctx context.Context, browser *headless.Requester, sendHTTPRequestConfig *common.SendHttpRequestConfig) ([]byte, error)
CaptureScreenshot uses a headless browser to capture a screenshot of the given URL and returns the image bytes.
func ComputeScreenshotPerceptualHash ¶ added in v0.0.278
ComputeScreenshotPerceptualHash decodes PNG bytes and returns a perceptual hash string in the form "p:<hex>" (the default goimagehash format, compatible with gowitness).
func ExtractHTMLTitle ¶ added in v0.2.0
ExtractHTMLTitle returns the first non-empty <title> text from HTML.
func PerformHTMLPageCapture ¶
func PerformHTMLPageCapture(ctx context.Context, config *common.SendHttpRequestConfig) (*common.HttpRequestResponse, error)
PerformHTMLPageCapture sends an HTTP request using the provided config and returns the response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.