scraping

package module
v0.0.0-...-28d7c6d Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist

type Artist struct {
	Name   string `json:"name"`
	Role   string `json:"role"`
	ImdbID string `json:"imdbID"`
	Image  string `json:"image"`
}

Artist defines the properties of a artist

type Scraper

type Scraper interface {
	Soundtracks(imdbID string) (soundtracks []Soundtrack, err error)
}

Scraper provides soundtrack scrapping operations

func NewScraper

func NewScraper(Client *http.Client, Url string) Scraper

type ScraperHttpClient

type ScraperHttpClient struct {
	Client *http.Client
	Url    string
}

func (*ScraperHttpClient) Soundtracks

func (s *ScraperHttpClient) Soundtracks(imdbID string) (soundtracks []Soundtrack, err error)

Soundtracks returns the soundtracks found for the given imdbID

type Soundtrack

type Soundtrack struct {
	Name    string `json:"name"`
	Artists []Artist
}

Soundtrack defines the properties of a soundtrack

func (*Soundtrack) PrettyPrint

func (s *Soundtrack) PrettyPrint()

PrettyPrint provides pretty-print for a soundtrack

Jump to

Keyboard shortcuts

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