Skip to content

Go library to access public data from Bandcamp.com

License

Notifications You must be signed in to change notification settings

undertideco/bandcamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bandcamp

Build Status GoDoc

This is a library that can do the following on Bandcamp:

  • Search
  • Lookup Tracks/Albums by URL

Usage

Add it to your Go project

go get github.com/undertideco/bandcamp

Code

package main

import (
  "github.com/undertideco/bandcamp"
)

func main() {
  bandcampClient := bandcamp.NewClient()

  results, err := bandcampClient.Search("Coldplay")
  if err != nil {
    log.Println(err)
  }

  track, err := bandcampClient.Lookup("https://spunoutofcontrol.bandcamp.com/track/infinite")
  if err != nil {
    log.Println(err)
  }

  album, err := bandcampClient.Lookup("https://coldplay.bandcamp.com/album/greatest-hits")
  if err != nil {
    log.Println(err)
  }
}

About

Go library to access public data from Bandcamp.com

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages