Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPageSource ¶
GetPageSource retrieves the source code of the web page currently loaded in the site session. It returns the page source code as a string or an error if the function fails to obtain the source code.
Args:
site (web.Site): a web.Site instance containing the session information for the website to retrieve the source code from.
Returns:
(string): the source code of the web page loaded in the site session.
(error): an error if the function fails to retrieve the source code or if the driver is not of the correct type.
Types ¶
type Driver ¶
type Driver struct { Context context.Context Options *[]chromedp.ExecAllocatorOption }
Driver is used to interface with Google Chrome using go.
func (*Driver) GetContext ¶
GetContext returns the context associated with the Driver.
func (*Driver) SetContext ¶
SetContext sets the context associated with the Driver.