Using selenium to find text of a specific size
I am trying to develop a web scraper in Python to scan messari.io and I am trying to get each cell under the Type field. Using dev tools and inspect, it seems like the text-size is 0.7em. How would I go about using the text size to get the text? I have tried to do h4, h5, and h6 and none of those return anything. Here is my code:
types = WebDriverWait(driver, 10).until(
EC.presence_of_all_elements_located((By.TAG_NAME, "h6")))
for type in types:
if type.text:
print(type.text)
And here is the site for reference: https://messari.io/governor/daos
Comments
Post a Comment