javascript - Website analyzer -


i'm having problem, page search products, has getting worse last time. wants display me products can delivered country - still want see of them. have check domins product manually (.com .ca .co.uk etc etc). want build small tool me.

i have tried php way:

$html=file_get_contents('https://www.ebay.com/sch/i.html?_ipg=200&_from=r40&_sacat=0&_nkw=book&_sop=10');           $dom = new domdocument(); @$dom->loadhtml(mb_convert_encoding($html,"utf8",mb_detect_encoding($html))); $x = new domxpath($dom);  foreach($x->query("//li") $node){ $ignore=0; $itemid= $node->getattribute("listingid"); if($itemid >0){  //if (in_array($itemid,$itemsindb)){  echo "itemid=".$itemid."//////text:  ";  echo $node->nodevalue;  echo "<br>"; } 

but problem is, nodevalue seems missing html tags, since ouput looks this:

itemid=322582462268//////text: new listing wind in willows, grahame arthur rackham illustrations, 1940, hc dj, $6.00 0 bids jul-25 11:42 united states

i want description of article, not rest inside each <li> has listing id (and must be) 1 <a href="..."> itemtext </a>. want content of a href not complete content

my output plain text, no tags or anything. looks go missing somewhere.

how can fix issue? accept different solutions (eg. jquery or so)


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -