Documentation
¶
Index ¶
- func FetchHTML(URL string) (io.ReadCloser, error)
- type ActionType
- type Scraper
- func (s *Scraper) Advance(startTag, class string, count int) error
- func (s *Scraper) Close()
- func (s *Scraper) Errorf(format string, a ...any) error
- func (s *Scraper) ScrapeLinks(startTag, class string, count int) ([]string, error)
- func (s *Scraper) ScrapeText(startTag, class string, count int) ([]string, error)
- func (s *Scraper) TryScrapeText() (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
func NewScraper ¶
func NewScraper(body io.ReadCloser) *Scraper
func (*Scraper) ScrapeLinks ¶
func (*Scraper) ScrapeText ¶
func (*Scraper) TryScrapeText ¶
Click to show internal directories.
Click to hide internal directories.