scraper

package
v0.0.0-...-c1b7209 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scraper

type Scraper struct {
	Responses chan []string
}

Scraper is responsible for scraping a website

func New

func New() *Scraper

New will create a new scraper

func (*Scraper) Scrape

func (s *Scraper) Scrape(uri string) error

Scrape will perform a GET request to fetch an html page and scrape it for links. These links will be returned as a string array. If there was an error while requesting it will be returned as well

Jump to

Keyboard shortcuts

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