Traceback (most recent call last): File "/home/ubuntu/PriceScraper/src/ScraperAlbert.py", line 22, in scrape for k in resp["data"]["categoryProductSearch"]["products"]: TypeError: 'NoneType' object is not subscriptable 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()}") AttributeError: 'dict' object has no attribute 'url'