bilbo

package module
v0.0.0-...-0bc937c Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

Bilbo Records Website Scraper

Bilbo Records is an independent record store in Leuven, Belgium and an online store. They offer a substitute for megastores by combining nice prices with a personal service.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	ShortTitle        string
	DetailRelativeURL string
	Price             float64
	Type              ItemType
	ImageURL          string
}

func Get

func Get(path Path) []Item

func (Item) String

func (i Item) String() string

type ItemDetail

type ItemDetail struct {
	ImageURL    string
	Price       float64
	ReleaseDate string
	Type        ItemType
	StockStatus StockStatus
	ArtistURL   string
	Title       string
	Artist      string
	Body        string
	SKU         string
}

func Detail

func Detail(path string) ItemDetail

type ItemSearch

type ItemSearch struct {
	Artist, Title     string
	Price             float64
	Type              ItemType
	ReleaseDate       string
	StockStatus       StockStatus
	ImageURL          string
	DetailRelativeURL string
}
func Search(query string) []ItemSearch

type ItemType

type ItemType string
const (
	CD  ItemType = "CD"
	LP  ItemType = "LP"
	DVD ItemType = "DVD"
)

type Path

type Path string
const (
	LatestReleases  Path = "/laatste-releases"
	Vinyl           Path = "/laatste-releases-lp"
	ThreeForTwenty  Path = "/3voor20"
	Table           Path = "/tafel-cd"
	Recommendations Path = "/onze-aanraders"
	FutureReleases  Path = "/toekomstige-releases"
	VinylPromo      Path = "/vinyl-promo"
)

type StockStatus

type StockStatus string
const (
	InStock           StockStatus = "In Stock"
	OutOfStock        StockStatus = "Out of Stock"
	NoLongerAvailable StockStatus = "No Longer Available"
)

Jump to

Keyboard shortcuts

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