Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/ScraperBilla.py", line 20, in scrape r = ScraperBilla.parse_item(j).__dict__ File "/home/ubuntu/PriceScraper/src/ScraperBilla.py", line 28, in parse_item i.category = item["category"] KeyError: 'category' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/main.py", line 16, in s.scrape() File "/home/ubuntu/PriceScraper/src/ScraperBilla.py", line 22, in scrape raise Exception(f"Invalid item:\n{j}") Exception: Invalid item: {'amount': '1000', 'brand': {'name': 'Prominent', 'slug': 'prominent'}, 'bundleInfo': '', 'conversionFactor': 100.0, 'descriptionLong': '', 'descriptionShort': 'Krůtí šťavnatá šunka', 'inPromotion': False, 'images': ['https://images.cdn.europe-west1.gcp.commercetools.com/1df039f1-4705-4f79-aa90-cf907a6ec063/82-356592-1535444608-q4Pu3E2D.jpg'], 'name': 'Krůtí šťavnatá šunka', 'packageLabel': '', 'parentCategories': [], 'price': {'baseUnitLong': 'Gram', 'baseUnitShort': 'g', 'basePriceFactor': '100', 'regular': {'perStandardizedQuantity': 2990, 'tags': [], 'value': 29900}}, 'productId': 'b9ab9141-0636-4128-8a1c-a63453644f70', 'medical': False, 'sku': '82-356592', 'slug': 'kruti-stavnata-sunka-82356592', 'upsellSku': '', 'published': True, 'purchased': False, 'volumeLabelKey': 'gr', 'volumeLabelLong': 'Gram', 'volumeLabelShort': 'g', 'weight': 1.0, 'weightArticle': True, 'weightPieceArticle': False, 'weightPerPiece': 0, 'alcoholByVolume': '', 'brandMarketing': '', 'countryOfOrigin': 'Česká republika', 'features': '', 'keywordSearch': '', 'meatBorn': '', 'meatButchered': '', 'meatSlaughtered': '', 'meatRaised': '', 'nappySize': '', 'nutIngredients': '', 'productMarketing': '', 'regulatedProductName': 'Masný výrobek tepelně opracovaný. Obsah masa 76%.', 'storageAndUsageStatements': 'Skladujte při teplotě do +5 °C.', 'storageType': 'Chlazené', 'telephoneHelpline': '', 'wineColour': '', 'wineType': '', 'quantityStepSize': 100}