Documentation
¶
Index ¶
- type Parse
- func (p *Parse) GetAllUrlByParseHtml(attrName string) (hrefList []string)
- func (p *Parse) GetCountAndSize(countR string, sizeR string) (count int, size int)
- func (p *Parse) GetOneUrlByParseHtml(attrName string) (src string, b bool)
- func (p *Parse) GetPageNum(r string) (num int)
- func (p *Parse) GetTextByParseHtml() (title string, info []string, date string)
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 (*Parse) GetCountAndSize ¶
func (*Parse) GetOneUrlByParseHtml ¶
func (*Parse) GetPageNum ¶
Click to show internal directories.
Click to hide internal directories.