bandcamp-scraper icon indicating copy to clipboard operation
bandcamp-scraper copied to clipboard

Request: Add getLabelInfo()

Open drone1 opened this issue 3 years ago • 6 comments
trafficstars

I would love to be able to provide a labelUrl to a function and get info about the label, like its name, bio, links, etc. Any plans to add this @masterT?

Thank you!

drone1 avatar Apr 03 '22 00:04 drone1

https://supervoidrecords.bandcamp.com/

drone1 avatar Apr 03 '22 20:04 drone1

I have an alternate package if youre interested:

package main

import (
   "fmt"
   "github.com/89z/mech/bandcamp"
)

func main() {
   item, err := bandcamp.NewItem("https://supervoidrecords.bandcamp.com")
   if err != nil {
      panic(err)
   }
   band, err := item.Band()
   if err != nil {
      panic(err)
   }
   fmt.Println(band.Name)
   fmt.Println(band.Bio)
   fmt.Println(band.Sites)
}

89z avatar Apr 03 '22 21:04 89z

I appreciate the punk nature of that package but I don't think it's a good fit for my purposes here. Thank you though.

drone1 avatar Apr 03 '22 21:04 drone1

What kind of information? @drone1

masterT avatar Apr 06 '22 11:04 masterT

What kind of information? @drone1

Given a labelUrl, provide a function getLabelInfo() that returns the following info:

  • label name
  • label bio
  • label location
  • website URL
  • label email address for fans

Thanks!

drone1 avatar Apr 06 '22 12:04 drone1

@drone1 I'm working on a refactor of the package which should implement this.

See

  • #63

masterT avatar Apr 15 '22 10:04 masterT