lodestone-fetcher/main.go

23 lines
340 B
Go

package main
import (
"encoding/json"
"fmt"
"log"
"github.com/karashiiro/bingode"
"github.com/xivapi/godestone/v2"
)
func main() {
s := godestone.NewScraper(bingode.New(), godestone.EN)
c, err := s.FetchCharacter(29932586)
if err != nil {
log.Fatalln(err)
}
data, _ := json.Marshal(c.ClassJobs)
fmt.Printf("%s\n", data)
}