I want to scrape this URL.
I am using phpQuery library for this purpose.
I want to scrape #weedmenuPane from that link which contains some items and its prices.
Problem is, when I get scraped HTML, the required DIV is not in the scraped HTMl.
I have checked with Firebug but it is not coming from any AJAX call.
I thought it was coming by some kind of JS operation after HTML is loaded but I have also checked by disabling JS in my browser, and that DIV is there, means not coming by any JS operation.
I want to know how it is coming and how it is being generated.
Here is code I have tried.
$html = file_get_contents($link, false, $context);
$html = phpQuery::newDocumentHTML($html);
echo pq("",$html);
echo pq("#weedmenuPane",$html)->html() . " here";
echo pq("",$html);has whole page HTML in it but not the desired DIV in it ... and the secondechois empty obviusly