The error says:
AttributeError: 'NoneType' object has no attribute 'get_text'
I was following a web scraping tutorial and everything worked fine just with this url, when I wanted to change it to this url the error that I already mentioned appeared.
The crawler function:
def product_crawler():
page = requests.get(url, headers=headers)
soup = BeautifulSoup(page.content, 'html.parser')
title = soup.find(id="productTitle").get_text()
print(title)
I checked all the answers on stackoverflow such as changing html.parser to lxml , but non of them worked.