scraper

package
v0.0.0-...-30df891 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Title       string `json:"title"`
	Size        string `json:"size"`
	UnitPrice   string `json:"unitPrice"`
	Description string `json:"description"`
}

Item stores details of a single product

type Result

type Result struct {
	Items []Item `json:"results"`
	Total string `json:"total"`
}

Result stores details of the scraped products

func Scrape

func Scrape(urls []string) Result

Scrape function parses provided URL for product links

Jump to

Keyboard shortcuts

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