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': '400', 'brand': {'name': 'NESTLÉ', 'slug': 'nestle'}, 'bundleInfo': '', 'conversionFactor': 1000.0, 'descriptionLong': '', 'descriptionShort': 'Nestlé YOGOLINO Dessert Kakao 4x100g', 'inPromotion': False, 'images': ['https://images.cdn.europe-west1.gcp.commercetools.com/1df039f1-4705-4f79-aa90-cf907a6ec063/82-276000-0546131214-bbB0BDML.jpg'], 'name': 'Nestlé YOGOLINO Dessert Kakao 4x100g', 'packageLabel': 'Krabice', 'packageLabelKey': 'kr', 'parentCategories': [[{'key': '1582', 'name': 'Péče o dítě', 'slug': 'pece-o-dite-1582', 'orderHint': '000000425'}, {'key': '1583', 'name': 'Dětská strava a nápoje', 'slug': 'detska-strava-a-napoje-1583', 'orderHint': '000000426'}, {'key': '1880', 'name': 'Příkrmy a přesnídávky pro děti', 'slug': 'prikrmy-a-presnidavky-pro-deti-1880', 'orderHint': '000000450'}, {'key': '1892', 'name': 'Podle věku', 'slug': 'podle-veku-1892', 'orderHint': '000000010'}, {'key': '1894', 'name': 'Od 6. měsíce', 'slug': 'od-6-mesice-1894', 'orderHint': '000000010'}]], 'price': {'baseUnitLong': 'Kilogram', 'baseUnitShort': 'kg', 'basePriceFactor': '1', 'regular': {'perStandardizedQuantity': 22475, 'tags': [], 'value': 8990}}, 'productId': '88cffcf9-38ec-4ae0-a640-05af2422a398', 'medical': False, 'sku': '82-276000', 'slug': 'nestle-yogolino-dessert-kakao-4x100g-82276000', 'upsellSku': '', 'published': True, 'purchased': False, 'volumeLabelKey': 'gr', 'volumeLabelLong': 'Gram', 'volumeLabelShort': 'g', 'weight': 0.4, 'weightArticle': False, 'weightPieceArticle': False, 'weightPerPiece': 0, 'alcoholByVolume': '', 'brandMarketing': '', 'countryOfOrigin': 'Francie', 'features': '', 'keywordSearch': '', 'meatBorn': '', 'meatButchered': '', 'meatSlaughtered': '', 'meatRaised': '', 'nappySize': '', 'nutIngredients': '', 'badges': ['long-term-price', 'eshop-only'], 'productMarketing': '', 'regulatedProductName': 'Od ukončeného 6. měsíce. Mléčný dezert s kakaem. Bez lepku.', 'storageAndUsageStatements': 'Uchovejte v suchu při pokojové teplotě.', 'storageType': 'Suché', 'telephoneHelpline': '', 'wineColour': '', 'wineType': ''}