@Speakermen

Как найти текс не затрагивая span?

Не получается отбросить текст внутри 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&nbsp;₽<span class="product-buy__prev">1 899</span></div><div class="product-buy__hint"></div></div>
  • Вопрос задан
  • 24 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы