I am trying to get some information from this web page: Front strut spacers 30mm for Ford Focus2, C-Max, Focus3, Kuga, Escape Lift Kit | eBay. Here is a screenshot:
I want to extract the “10 available” info and I am using the span id qtySubTxt
, however my code does not reach the actual value. Here is my code:
$available = $html->find("#qtySubTxt", 0);
//var_dump($available);
if($sold != null){
$item['available'] = $available->plaintext;
}else{
$item['available'] = '';
}
I debugged the DOM element but I am confused how to reach the text. Here is my debugged info from the DOM element: