cmglezpdev / Yu-Gi-Oh-backend

Web project IS + DB
3 stars 0 forks source link

Obtain Yu-Gi-Oh API Cards Information #9

Open cmglezpdev opened 1 year ago

cmglezpdev commented 1 year ago

Create scraper to get information about all cards

API: https://ygoprodeck.com/api-guide/

JSON Structure

[
  {
    "name": "Tornado Dragon",
    "type": "XYZ Monster",
    "frameType": "xyz",
    "desc": "2 Level 4 monsters\nOnce per turn (Quick Effect): You can detach 1 material from this card, then target 1 Spell/Trap on the field; destroy it.",
    "atk": 2100,
    "def": 2000,
    "level": 4,
    "race": "Wyrm",
    "attribute": "WIND",
    "card_images": {
      "id": 6983839,
      "image_url": "https://images.ygoprodeck.com/images/cards/6983839.jpg",
      "image_url_small": "https://images.ygoprodeck.com/images/cards_small/6983839.jpg",
      "image_url_cropped": "https://images.ygoprodeck.com/images/cards_cropped/6983839.jpg"
    }
  }
]
aspio28 commented 1 year ago

Hecho