I am doing scraping with butifulsoup module
in python
My Code:
for cactus in cactus_product:
price = cactus.find("span", class_="._89yzn").text
title = cactus.find("span", class_="._2tW1I").text
f.write(title + "," + price)
error
Traceback (most recent call last):
File "C:\Users\Technicalsmirchis\python_scraping_tutorial\scraper.py", line 24, in <module>
price = cactus.find('span', class_="_89yzn").text
AttributeError: 'NoneType' object has no attribute 'text'