Python Selenium ItemProp

# tags = ["span", "div", "meta", "a"]
# attribute = in html: <span itemprop="ATTRIBUTE_HERE">
driver.find_element_by_xpath(f"//{tag}[@itemprop='{attribute}']")
Nice Nightingale