Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLoader ¶
func CreateLoader()
func ExtractStrings ¶
Types ¶
type ExternalScriptsExtractor ¶
ExternalScriptsExtractor represents an interface to extract external scripts from an HTML page
type FastHTTPPageLoader ¶
type FastHTTPPageLoader struct { Timeout time.Duration MaxRedirects int UserAgent string Buf []byte }
FastHTTPPageLoader represents a way to load HTML by URL via fasthttp package
type GoqueryParser ¶
type GoqueryParser struct{}
GoqueryParser represetns an entity to parse HTML with goquery
func (GoqueryParser) ExtractInlineScripts ¶
func (g GoqueryParser) ExtractInlineScripts(htmlBody []byte) ([]string, error)
ExtractInlineScripts extracts an array of inline scripts from HTML document
func (GoqueryParser) ExtractRefs ¶
func (g GoqueryParser) ExtractRefs(htmlBody []byte) ([]string, error)
ExtractRefs extracts an array of external scripts from HTML document
type InlineScriptsExtractor ¶
type InlineScriptsExtractor interface {
ExtractInlineScripts(htmlBody []byte) (refs []string, err error)
}
InlineScriptsExtractor represents an interface to extract inline scripts from an HTML page
Source Files ¶
Click to show internal directories.
Click to hide internal directories.