Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/ScraperAlbert.py", line 22, in scrape for k in json["data"]["categoryProductSearch"]["products"]: KeyError: 'data' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/main.py", line 17, in s.scrape() File "/home/ubuntu/PriceScraper/src/ScraperAlbert.py", line 26, in scrape raise Exception(f"Invalid response at [{resp.url}]:\n{resp.text}\nException:\n{traceback.format_exc()}") Exception: Invalid response at [https://www.albert.cz/api/v1/?operationName=GetCategoryProductSearch&variables=%7B%22lang%22:%22cs%22,%22category%22:%22zeB001%22,%22pageNumber%22:0,%22includeSponsoredProducts%22:false,%22pageSize%22:20,%22filterFlag%22:true,%22plainChildCategories%22:true%7D&extensions=%7B%22persistedQuery%22:%7B%22version%22:1,%22sha256Hash%22:%22161b8b6137d82243a0dbfeed8477edec6469b84e16b0d00490c1133c57e3f234%22%7D%7D]: {"errors":[{"message":"PersistedQueryNotFound","reasonCode":"PERSISTED_QUERY_NOT_FOUND","extensions":{"code":"PERSISTED_QUERY_NOT_FOUND"}}]} Exception: Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/ScraperAlbert.py", line 22, in scrape for k in json["data"]["categoryProductSearch"]["products"]: KeyError: 'data'