parse

package
v0.0.0-...-1aeafd4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parse

type Parse struct {
	Html            string
	BaseUrl         string
	Source          string
	SourceCode      string
	UrlSelector     string
	TitleSelector   string
	TextSelector    string
	DateSelector    string
	PageNumSelector string
	Suffix          string
	DomainName      string
}

func (*Parse) GetAllUrlByParseHtml

func (p *Parse) GetAllUrlByParseHtml(attrName string) (hrefList []string)

func (*Parse) GetCountAndSize

func (p *Parse) GetCountAndSize(countR string, sizeR string) (count int, size int)

func (*Parse) GetOneUrlByParseHtml

func (p *Parse) GetOneUrlByParseHtml(attrName string) (src string, b bool)

func (*Parse) GetPageNum

func (p *Parse) GetPageNum(r string) (num int)

func (*Parse) GetTextByParseHtml

func (p *Parse) GetTextByParseHtml() (title string, info []string, date string)

Jump to

Keyboard shortcuts

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