I am using python for webscraping (new to this) and am trying to grab the brand name from a website. It is not visible on the website but I have found the element for it:
<span itemprop="Brand" style="display:none;">Revlon</span>
I want to extract the "Revlon" text in the HTML. I am currently using html requests and have tried grabbing the selector (CSS) and text:
brandname = r.html.find('body > div:nth-child(96) > span:nth-child(2)', first=True).text.strip()
but this returns None and an error. I am not sure how to extract this specifically. Any help would be appreciated.