FriendsOfPHP / Goutte

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

Take snapshot of a web #281

Closed yoandrygc closed 7 years ago

yoandrygc commented 8 years ago

It is possible to take a snapshot of the web loaded with Goutte ?

fabpot commented 8 years ago

If you mean a browser's screenshot, the answer is no as Goutte only makes HTTP requests without any client side rendering.

yoandrygc commented 8 years ago

Let me tell you a bit to see if you could point me in the right direction. I need to be able to get the captcha image that shows on a certain web page but seems goutte doesn't wait for the captcha to load.

Regards

fabpot commented 8 years ago

Again, keep in mind that Goutte is only doing HTTP requests, so there is no "wait". You get the HTML page content, that's all. If you need the captcha, you probably need something else.

stof commented 7 years ago

the captcha is probably relying on some JS, and Goutte does not run the JS code