goscraper: github.com/badoux/goscraper Index | Files

package goscraper

import "github.com/badoux/goscraper"

Index

Package Files

goscraper.go

Variables

var (
    EscapedFragment string = "_escaped_fragment_="
)

type Document Uses

type Document struct {
    Body    bytes.Buffer
    Preview DocumentPreview
}

func Scrape Uses

func Scrape(uri string, maxRedirect int) (*Document, error)

type DocumentPreview Uses

type DocumentPreview struct {
    Icon        string
    Name        string
    Title       string
    Description string
    Images      []string
    Link        string
}

type Scraper Uses

type Scraper struct {
    Url                *url.URL
    EscapedFragmentUrl *url.URL
    MaxRedirect        int
}

func (*Scraper) Scrape Uses

func (scraper *Scraper) Scrape() (*Document, error)

Package goscraper imports 9 packages (graph) and is imported by 5 packages. Updated 2019-10-11. Refresh now. Tools for package owners.