Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('simple_html_dom.php'); //Libreria
- $url = "https://www.exito.com/products/MP00550000000204/Televisor+LG+Led+43+Pulgadas+Full+HD+Smart+TV+43LJ550T"; //Link del producto
- $html = new simple_html_dom();
- $html->load_file($url);
- $post = $html->find('p[class=price offer]', 0)->plaintext;
- $resultado = str_replace ( ".0", '', $post);
- echo $resultado;
- ?>
Add Comment
Please, Sign In to add comment