Skip to content

stavia/imdbsoundtracks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imdbsoundtracks

imdbsoundtracks is a Go library for retrieving soundtracks from IMDb.

Usage

Download and install the package

go get -u github.com/stavia/imdbsoundtracks/pkg/scraping

Import the package

import "github.com/stavia/imdbsoundtracks/pkg/scraping"

Construct a new scraping service, then get all soundtracks for the IMDb id tt7286456 (Joker 2019)

scraper := new(scraping.Service)
soundtracks := scraper.Soundtracks("tt7286456")

Loop through and print all soundtracks

for _, soundtrack := range soundtracks {
    soundtrack.PrettyPrint()
}