-2
I am collecting data from a particular site, where when collecting some values I am facing some difficulties and would like to help to solve.
I have the following code:
valores = soup_anuncio.find_all('span', attrs='ek9a7p-0')
categoria_valores = []
for i in valores:
valor = i.get_text()
categoria_valor.append(valor)
print(categoria_valor)
And the value returned (in str) is:
['R$\xa01.417', 'R$\xa01.200', 'R$\xa0185', 'R$\xa018', 'R$\xa028', 'R$\xa02.848']
I tried to take the R$\xa0
of the result in some ways, but I couldn’t.
How can I get only numbers in int format?
Do you want monetary values and int? Will lose pennies.
– Augusto Vasques
The values have no cents. In fact where is the point is a separator of 1000
– Natanael Silva Melo