Perhaps I am not picking up what you are saying properly. What is to stop you using Win32::IE::Mechanize to do all of this?
You can use it to open an IE window:
#!/usr/bin/perl
use Win32::IE::Mechanize;
my $ie = Win32::IE::Mechanize->new( visible => 0 ); # you wanted it no
+t to be a visable window right?
which will be able deal with the JavaScript. You could use the $ie->images method similarly to the way you were going to use WWW::Mechanize's $mech->images. If I am not understanding some part of the problem let me know.
Hope this helps.
Martin | [reply] [d/l] [select] |
While getting all the images references in the current page is helpful, I need to save them to disk. There is no non-interactive way to do this with Win32::IE::Mechanize.
$ie->get($url, ":content_file"=>$file);
The above method does not work for image data. I also get an empty file if I do the following:
open(OUT, ">$file");<br>
print OUT $ie->content;<br>
close(OUT);
thanks,
Kevin
| [reply] [d/l] [select] |
Kevin,
"There is no non-interactive way to do this with Win32::IE::Mechanize."
By 'non-interactive' do you mean you may have to code something by hand? Way back in this thread when I mentioned the examples did you look at any of them? With a little work I am sure you could mimic merlyns 'get-despair' example. Let me know how you get on
Martin
| [reply] |