parsing - simple html dom parser and pagination -
i use simple html dom parser parse website, , have encountered problem handling pagination on website. actual code parse 1 page, , i'd parse pages:
<?php include ('simple_html_dom.php'); $url = file_get_html('http://www.ecran-portable.net/268-ecrans-pc-portable'); foreach($url->find('.product-name') $produit) echo $produit->plaintext . '<br />'; ?>
Comments
Post a Comment