I have the following string :'Circa 54.000.000 risultati (0,54 secondi)'
I want to get only the second number (54.000.000) as a float (or int so I can use this value to determinate if it is higher than a given number).
result=wd.find_element_by_id('result-stats')
search=result.text.replace("risultati","")
search= search.replace("Circa", "")
search= search.replace("secondi","")
The result is used to take the element from the html and by using .replace I manage to have the following string:'54.000.000 (0,54)'.
From there how can I get 54.000.000 as a number?
.split()