Inside the source code of the url I want to scrape I can see this:
<div class="price"> 22.96€ </div>
And this is the php file that I created but it´s not returning any value:
<?php $data_scraped = file_get_contents('https://www.example.com/es/busquedas/?type%5B%5D=steam&query=motogp+20'); $the_start = explode('<div class="price">',$data_scraped); $the_end = explode('</div>',$the_start[1]); echo $the_end[0]; ?>
Any help would be really appreciated