Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct { // Represents the parsed jQuery like HTML document. Document *goquery.Document }
Parser parses an HTML response body to extract metadata or update selectors.
func (*Parser) ExtractMetadata ¶
ExtractMetadata extracts metadata from the document.
func (*Parser) ReplaceAssets ¶
func (p *Parser) ReplaceAssets(transformer URLTransformer)
ReplaceAssets replaces assets within the HTML document using the provided transformation function. These assets that are linked or embedded in the document, such as images, CSS files, JavaScript files, fonts, etc., are essential for rendering the web page correctly and providing the desired functionality and appearance.
type URLTransformer ¶
URLTransformer is a function type that transforms URLs.
Click to show internal directories.
Click to hide internal directories.