xhtml

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package xhtml is an extension to gurl library for fetching and parsing html using query selectors.

Index

Constants

View Source
const Version = "x/xhtml/v0.0.3"

Variables

This section is empty.

Functions

func Content

func Content(content **goquery.Selection) http.Arrow

HTTP Arrow receive and parses HTML content

Types

type Client

type Client struct {
	http.Stack
}

HTTP Client tailored for fetching HTML content from public resources

func New

func New(opts ...http.Option) Client

Create new instance of HTTP Client tailored for fetching HTML content from public resources.

func (Client) Fetch

func (site Client) Fetch(ctx context.Context, url string) (*goquery.Selection, error)

Fetches HTML content behind url, parser HTML.

Jump to

Keyboard shortcuts

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