Page 1 of 1

HTML SOM parsing in php

Posted: Mon Feb 24, 2014 12:24 am
by sneha_gupta
HI,

I am working with simple_html_dom parsing script but having a problem.So need some help.
Our script is extracting html contents from an URL using simple_html_dom parser script.
But now, the main content page is coming after few seconds, during that delay there is an ad page is coming, so our script is extracting content of that ad page every time.

. Suggest me something that somehow I can put delay or avoid this ad page to get the useful content from main content page only.

Thanks in advance for your help.

Re: HTML SOM parsing in php

Posted: Mon Feb 24, 2014 12:34 pm
by requinix
Are you sure that's happening? Ads are generally loaded through Javascript and your PHP code won't do that.