Documentation ¶
Index ¶
- Variables
- func ScreenShot(urlStr, path string) error
- type Chrome
- type ChromeDP
- func (ch *ChromeDP) DoTask(urlStr, proxy string, tasks []string, log glog.Interface, ...) (map[string][]byte, error)
- func (ch *ChromeDP) GetFullHtml(urlStr, proxy string, log glog.Interface, timeout time.Duration) ([]byte, error)
- func (ch *ChromeDP) Screenshot(urlStr, proxy string, log glog.Interface, timeout time.Duration) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskScreenshot = "screenshot" TaskFullHtml = "full-html" )
Functions ¶
func ScreenShot ¶
Types ¶
type Chrome ¶
type Chrome struct { Resolution string ChromeTimeout int ChromeTimeBudget int Path string UserAgent string Argvs []string ScreenshotPath string }
Chrome contains information about a Google Chrome instance, with methods to run on it.
func (*Chrome) ScreenshotURL ¶
ScreenshotURL takes a screenshot of a URL
func (*Chrome) SetScreenshotPath ¶
SetScreenshotPath sets the path for screenshots
type ChromeDP ¶
type ChromeDP struct { }
func NewChromeDP ¶
func NewChromeDP() *ChromeDP
func (*ChromeDP) GetFullHtml ¶
Click to show internal directories.
Click to hide internal directories.