crawling website with ocasional redirects

Mutikasa

Power Member
Joined
May 23, 2011
Messages
589
Reaction score
216
I am trying to scrape website which have popups or whatever. So sometimes my parser "simple_html_dom" for php gets the html of a popup instead of the page I need.
How can I get around this?
 
Filter out pages outside $target_domain

if (!preg_match("mydomain.com",$that_shit)) redirect("matt cutts home");
 
cool, so I just keep on reloading until i get the page i want
 
It doesn't work. It keeps bringing me back to the popup for eternity until maximum execution time is exceeded
 
I had to add cookie to the crawler because the popup is only one per session
 
It doesn't work. It keeps bringing me back to the popup for eternity until maximum execution time is exceeded

You may be doing something wrong. If in doubt, hire a freelancer to do this for you.
 
Back
Top