mantimon-tcg/backend/data/raw/a1a
Cal Corum adb55dec12 Fix scraper to preserve energy types in effect text
The source website uses <span class='energy-text energy-text--type-fire'>
to render inline energy icons. BeautifulSoup's get_text() was stripping
these spans, losing the energy type information and causing merged text
like 'Discard aEnergy' instead of 'Discard a Fire Energy'.

Changes:
- Add ENERGY_TEXT_TYPES mapping for inline energy references
- Add replace_energy_text_spans() to convert spans to text before extraction
- Add extract_effect_text() helper with proper text joining (separator=' ')
- Update parse_attack(), parse_ability(), _parse_trainer_details() to use it
- Fix JSON encoding in convert_cards.py to use UTF-8 (ensure_ascii=False)

Before: 'Discard an Energy from this Pokémon'
After:  'Discard a Fire Energy from this Pokémon'

Re-scraped all 372 cards and regenerated 382 definitions.
2026-01-27 15:10:02 -06:00
..
001-exeggcute.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
002-exeggutor.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
003-celebi-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
004-snivy.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
005-servine.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
006-serperior.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
007-morelull.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
008-shiinotic.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
009-dhelmise.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
010-ponyta.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
011-rapidash.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
012-magmar.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
013-larvesta.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
014-volcarona.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
015-salandit.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
016-salazzle.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
017-magikarp.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
018-gyarados-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
019-vaporeon.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
020-finneon.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
021-lumineon.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
022-chewtle.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
023-drednaw.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
024-cramorant.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
025-pikachu.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
026-raichu.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
027-electabuzz.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
028-joltik.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
029-galvantula.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
030-dedenne.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
031-mew.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
032-mew-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
033-sigilyph.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
034-elgyem.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
035-beheeyem.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
036-flabebe.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
037-floette.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
038-florges.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
039-swirlix.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
040-slurpuff.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
041-mankey.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
042-primeape.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
043-geodude.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
044-graveler.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
045-golem.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
046-aerodactyl-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
047-marshadow.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
048-stonjourner.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
049-koffing.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
050-weezing.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
051-purrloin.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
052-liepard.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
053-venipede.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
054-whirlipede.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
055-scolipede.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
056-druddigon.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
057-pidgey.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
058-pidgeotto.json Add CardService and card data conversion pipeline 2026-01-27 14:16:40 -06:00
059-pidgeot-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
060-tauros.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
061-eevee.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
062-chatot.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
063-old-amber.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
064-pokemon-flute.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
065-mythical-slab.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
066-budding-expeditioner.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
067-blue.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
068-leaf.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
069-exeggutor.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
070-serperior.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
071-salandit.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
072-vaporeon.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
073-dedenne.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
074-marshadow.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
075-celebi-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
076-gyarados-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
077-mew-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
078-aerodactyl-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
079-pidgeot-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
080-budding-expeditioner.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
081-blue.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
082-leaf.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
083-mew-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
084-aerodactyl-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
085-celebi-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00
086-mew-ex.json Fix scraper to preserve energy types in effect text 2026-01-27 15:10:02 -06:00