Не получается отбросить текст внутри span( на выходе
(None, None, None, None, None, '999\xa01499', None, None, None, None, None, '1199\xa01899', None, None, None, None, None, None)
if d.find(class_="product-buy__price_active") is not None:
listDiscount.append(d.find(
class_="product-buy__price_active").text.replace("₽", "").replace(' ', '').strip())
else:
listDiscount.append(None)
<div class="product-buy__price-wrap product-buy__price-wrap_interactive">
<div class="product-buy__price product-buy__price_active">1 199 ₽<span class="product-buy__prev">1 899</span></div><div class="product-buy__hint"></div></div>