stavia / imdbsoundtracks

Library for retrieving soundtracks from IMDb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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()
}

About

Library for retrieving soundtracks from IMDb

License:MIT License


Languages

Language:Go 100.0%