Answer the question
In order to leave comments, you need to log in
Removing child elements in xpath query?
<div class="name-class">
<h1>
<span>
<a href="#">ваше</a>
</span>
Имя
</h1>
</div>
(doc / "//div[@class='name-class']/h1").each do |row|
product_name = row.text.strip
<span>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question