1
如果ch_title
款包含了我在尋找一個字,我想scrapy來選擇相關的ch_spec
段:在XPath中選擇包含字符串的元素之後的元素?
<div class="holder-specificatii">
<div class="box-specificatie" id="specifications-93-">
<div class="ch_group"></div>
<p class="ch_title">IPhone:</p>
<p class="ch_spec">iPhone 6</p>
<p class="ch_title">Tip Telefon:</p>
<p class="ch_spec">Smartphone</p>
<p class="ch_title">Sloturi Sim:</p>
<p class="ch_spec">Single Sim</p>
<div class="clear"></div>
</div>
</div>
感謝您的幫助:) – ALex
工作正常,謝謝@kjhughes – ALex