gopchromedp

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportHTMLPage

func ExportHTMLPage() string

GetScreenshotHTML Create the HTML page that references all the taken screenshots.

func ExportItemsToJSON

func ExportItemsToJSON(items []Item) string

func ExportLoadedResources

func ExportLoadedResources(items []Item) string

func GetFileName

func GetFileName(url string) string

GetHTMLFileName Compute the filename based on the URL.

func GetHTMLCode

func GetHTMLCode(item *Item, url string, directory string, proxy string, cookie string, timeout int)

TakeScreenShot Take screenshot of the pages.

func GetHTMLFileName

func GetHTMLFileName(url string) string

GetHTMLFileName Compute the filename based on the URL.

func GetScreenshotFileName

func GetScreenshotFileName(url string) string

GetScreenshotFileName Compute the filename based on the item.Url.

func TakeScreenShot

func TakeScreenShot(item *Item, directory string, proxy string, cookie string, timeout int)

TakeScreenShot Take screenshot of the pages.

Types

type Item

type Item struct {
	Url                        string
	FileName                   string
	ScreenShotFileName         string
	HTMLFileName               string
	RemoteIP                   string
	RemotePort                 string
	ResponseStatus             string
	ResponseStatusText         string
	ResponseHeaders            []string
	ResponseProtocol           string
	ResponseSecure             bool
	ResponseIssuer             string
	ResponseCertificateSubject string
	ResponseCertificateSanList []string
	Resources                  []Item
}

func NewItem

func NewItem(url string) (item Item)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL