felipewove / pokemontcg-price-crawler

A Brazilian Pokémon TCG Price crawler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When the name contains parenthesis, don't bring id from card (example Fairy Charm)

felipewove opened this issue · comments

This was found when importing Lost Thunder, the card Fairy Charm has 4 variants: Dragon, Fighting, Grass and Psychic and comes from LigaPokemon as Fairy Charm (Dragon), Fairy Charm (Fighting), Fairy Charm (Psychic) and Fairy Charm (Grass)

Its exporting this way, that's wrong:

Fairy Charm,,Dragon,0.20,0.97,4.90
Fairy Charm,,Fighting,0.20,0.88,4.00
Fairy Charm,,Grass,0.20,0.84,4.50
Fairy Charm,,Psychic,0.20,0.86,4.50

The correct should be:

Fairy Charm (Dragon),,177,0.20,0.97,4.90
Fairy Charm (Fighting),,176,0.20,0.88,4.00
Fairy Charm (Grass),,174,0.20,0.84,4.50
Fairy Charm (Psychic),,175,0.20,0.86,4.50