FriendsOfPHP / Goutte

Goutte, a simple PHP Web Scraper
MIT License
9.26k stars 1.01k forks source link

Form submit with multiple redirection #318

Open fahadacheema opened 7 years ago

fahadacheema commented 7 years ago

I'm trying to fetch data from a website where once you submit the form it redirects to a loading page which is set to be automatically redirected to the final results page. The issue is that the crawler only gets the data of the loading page and does not go fully to the final results page which is what I actually need. Can someone please tell me how I can achieve that? If not possible then what could be an alternative way to do this?

stof commented 7 years ago

how is it set to be automatically redirected ?

fahadacheema commented 7 years ago

@stof Using this meta tag

<meta http-equiv="refresh" content="5;url=index.php?r=book/" />

mmehran57 commented 7 years ago

@17100194 did you find any solution about this?? i m facing the same problem??