I want to download some images with PhantomJS but I have a little problem. My code is this:
page.open( url, function ( status ) {
page.render( "test.jpg" );
phantom.exit();
});
The problem is that the URL redirects to the home page of site. How can I disable the URL redirect and save the image? The URL is something like: http://some_url/00.jpg. I want to download this (and others) image from this site, but with the redirect is impossible for me save the image.
I have not found anything on the internet that might solve my problem. Anyone can help me?