Hi. I am new to python web scraping. I am trying to scrape a website and store data. The data I am trying to extract is under the item-name class and between the anchor tags. I did a little research and found a code that I could use.
name=page.find('a',{'class':'item-name'}).getText()
The problem is that in some case, there is no Object for this class. So it the script is showing an error telling the object in NoneType.
So, I want to build a logic where my script checks if the value returned is Null and extract the data only if the value is not Null.
How can I do this?