HTML SOM parsing in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sneha_gupta
Forum Newbie
Posts: 1
Joined: Mon Feb 24, 2014 12:16 am

HTML SOM parsing in php

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: HTML SOM parsing in php

Post by requinix »

Are you sure that's happening? Ads are generally loaded through Javascript and your PHP code won't do that.
Post Reply