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': '125', 'brand': {'name': 'Borůvky', 'slug': 'boruvky'}, 'bundleInfo': '', 'descriptionLong': '', 'descriptionShort': 'Borůvky 125g, vanička', 'inPromotion': True, 'images': ['https://images.cdn.europe-west1.gcp.commercetools.com/1df039f1-4705-4f79-aa90-cf907a6ec063/82-226449-0109721578-cQyWmplj.jpg'], 'name': 'Borůvky 125g, vanička', 'packageLabel': 'balení', 'packageLabelKey': 'pk', 'parentCategories': [], 'price': {'baseUnitLong': 'Kilogram', 'baseUnitShort': 'kg', 'basePriceFactor': '1', 'crossed': 4990, 'discountPercentage': -34, 'regular': {'perStandardizedQuantity': 26320, 'promotionValue': 4990, 'promotionValuePerStandardizedQuantity': 39920, 'tags': ['pt-aktion'], 'value': 3290}, 'lowestPrice': 3690}, 'productId': '0ed3828b-8b17-431a-ac47-56b9ec9f4132', 'medical': False, 'sku': '82-226449', 'slug': 'boruvky-125g-vanicka-82226449', 'upsellSku': '', 'published': True, 'purchased': False, 'volumeLabelKey': 'gr', 'volumeLabelLong': 'Gram', 'volumeLabelShort': 'g', 'weight': 0.125, 'weightArticle': False, 'weightPieceArticle': False, 'weightPerPiece': 0, 'alcoholByVolume': '', 'brandMarketing': '', 'countryOfOrigin': 'Španělsko', 'features': '', 'keywordSearch': '', 'meatBorn': '', 'meatButchered': '', 'meatSlaughtered': '', 'meatRaised': '', 'nappySize': '', 'nutIngredients': '', 'productMarketing': '', 'regulatedProductName': 'Borůvky 125g, vanička', 'storageAndUsageStatements': '', 'storageType': '', 'telephoneHelpline': '', 'wineColour': '', 'wineType': ''}