Given this markup: [MARKUP][1]
I need to get the number 182 in a column and the 58 in another. I already have the span, but when I call the div.get_tex() or string it returns = 18258(both numbers)
This is my code_:
prices= soup.find_all('div', class_='grilla-producto-precio')
cents= []
price= []
for px in prices:
### here i need to get the number 182 and append it to "price"
for spn in px.find('span'):
cents.append(spn)
HOW CAN I GET THE PRICE 182 ALONE WITHOUT THE SPAN? THANKS!!!! [1]: https://i.stack.imgur.com/ld9qo.png