scrape

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbPath          = "temp/scrape.db"
	Nodes  bolt.Key = "nodes"
)
View Source
const NewLine bolt.Key = "\n"

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteString

type ByteString string

func (ByteString) B

func (b ByteString) B() []byte

type NodeStorage

type NodeStorage struct {
	// contains filtered or unexported fields
}

func (*NodeStorage) Dump

func (n *NodeStorage) Dump(out io.Writer) error

func (*NodeStorage) EachChildNode

func (n *NodeStorage) EachChildNode(callback func(idx int, node *html.Node))

func (*NodeStorage) EachNode

func (n *NodeStorage) EachNode(callback func(idx int, node *html.Node))

func (*NodeStorage) Key

func (n *NodeStorage) Key() bolt.Key

func (*NodeStorage) SetValue

func (n *NodeStorage) SetValue(val []byte) error

func (*NodeStorage) Value

func (n *NodeStorage) Value() ([]byte, error)

type Request

type Request struct {
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest(url, selector string) *Request

type Scrape

type Scrape struct {
	// contains filtered or unexported fields
}

func New

func New() (*Scrape, error)

func (*Scrape) Run

func (s *Scrape) Run() (err error)

Jump to

Keyboard shortcuts

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