I have a soup object like:
<span class="nowrap">
2 633
<span class="currency rub">q</span>
</span>
I did:
price = item.find('span', class_='nowrap')
price_x = price.text.strip()
print(price_x)
Result: 2 633 q.
How can I get without 'q'. Just: 2 633