I am trying to scrap a e-retail website to get the prices of the products but I get an empty response for the specific portion of the site which contains the product details.
This is the link I'm trying https://www.flipkart.com/american-tourister-jasper-backpack/p/itmea59yztwfzfk8?pid=BKPEA59YWHMDHJZS to scrap
This is my code
<?
include 'simple_html_dom.php';
$html = file_get_html('https://www.flipkart.com/american-tourister-jasper-backpack/p/itmea59yztwfzfk8?pid=BKPEA59YWHMDHJZS');
foreach($html->find('div._2Cl4hZ') as $e)
echo $e->plaintext. '<br>';
?>
I think some algorithm is blocking the DOM from scrapping the contents of the data inside the div _2Cl4hZ. When I scrap the complete page in plaintext all the other data gets scrapped and I can view them except for the data inside that div. Is there anyway to do this?