Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97762

Scrape data from a website using selenium

$
0
0

I am still quite amateur at python, I am trying to scrape data from a website using selenium

<small class="fxs_price_ohl"> <span>Open 1.29814</span> <span>High 1.29828</span> <span>Low 1.29775</span> </small> </div> </div> </li> <script type="application/ld+json">

trying to obtain the data Open 1.29814, High 1.29828 and Low 1.29775 from the html code above^

count_element = browser.find_element_by_xpath("//small[@class='fxs_price_ohl']//span")
print(count_element.text)

I'm using selenium with python, this is my code ^ But count_element.text prints empty, how to get the data Open 1.29814, High 1.29828 and Low 1.29775


Viewing all articles
Browse latest Browse all 97762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>