v0.0.0-...-11c624a Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0



Copyright © 2023 NAME HERE <EMAIL ADDRESS>



View Source
const Baseurl = ""

Baseurl base url

View Source
const CardModelVersion = "3"

CardModelVersion : Card format version

View Source
const PRODUCTS_URL = ""


View Source
var BAN_PRODUCT = []string{


func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func IsbaseRarity

func IsbaseRarity(card Card) bool

IsbaseRarity check if a card is a C / U / R / RR


type Card

type Card struct {
	Set               string   `json:"set"`
	SetName           string   `json:"setName"`
	Side              string   `json:"side"`
	Release           string   `json:"release"`
	ID                string   `json:"id"`
	Name              string   `json:"name"`
	JpName            string   `json:"jpName"`
	CardType          string   `json:"cardType"`
	Colour            string   `json:"colour"`
	Level             string   `json:"level"`
	Cost              string   `json:"cost"`
	Power             string   `json:"power"`
	Soul              string   `json:"soul"`
	Rarity            string   `json:"rarity"`
	BreakDeckbuilding bool     `json:"breakDeckbuilding"`
	ENEquivalent      bool     `json:"EN_Equivalent"`
	FlavourText       string   `json:"flavourText"`
	Trigger           []string `json:"trigger"`
	Ability           []string `json:"ability"`
	SpecialAttrib     []string `json:"specialAttrib"`
	Version           string   `json:"version"`
	Cardcode          string   `json:"cardcode"`
	ImageURL          string   `json:"imageURL"`
	Tags              []string `json:"tags"`

Card info to export

func ExtractData

func ExtractData(mainHTML *goquery.Selection) Card

ExtractData extract data to card

type ProductInfo

type ProductInfo struct {
	ReleaseDate string
	Title       string
	LicenceCode string
	Image       string
	SetCode     string

ProductInfo represents the extracted information from the HTML

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL