📅  最后修改于: 2022-03-11 14:45:51.131000             🧑  作者: Mango
# tags = ["span", "div", "meta", "a"]
# attribute = in html:
driver.find_element_by_xpath(f"//{tag}[@itemprop='{attribute}']")