Re: DocumentHTML ?




"A. Sinan Unur" > wrote ...
"~greg" > wrote ...
...
Any hints, please?

Well, the first one would to use

http://search.cpan.org/~abeltje/Win32-IE-Mechanize-0.009_17/

I have successfully used that module to do some really complicated
automated downloading of about 10 GB of HTML from various web sites
(sorry can't be more specific).

Note the comment at

http://search.cpan.org/~abeltje/Win32-IE-Mechanize-0.009_17/lib/Win32/IE/Mechanize.pm#%24ie-%3Econtent

use strict;

use warnings; # do not leave it out.




Thanks.

I do use Mechanize, and TreeBuilder, together, quite a bit.

But what I am really trying to do is to add value to my regular browser
(i.e, IE), --without having to write COM plug-ins
(or whatever they're called these days.)

~~

I don't know what you mean by "the comment" at the link
to cpan's Win32::IE::Mechanize,

but the DESCRIPTION of its current state is not at all encouraging
(---"Don't expect it to be like the mech in that the class is not derived
from the user-agent class (like LWP). WARNING: This is a work in progress ... ")

and the CAVEATS (---"...This means that you may need
to set your security settings to a low and possibly unsafe level. ...")

sounds down right dire to me.

(Part of what I mean by adding value to IE is ADDING security, not subtracting it!)

~~~

But of course I use warnings!

You didn't see it in my snippet because I always run scripts
from within a text editor that has it on the command line:
perl.exe -w -Mstrict ...

But I do want to thank you because you made me look
at the setup again, and it turns out that I'd had it as:
perl.exe -w mstrict ...

- with small 'm' instead of capital 'M',
-- which is why I had to still use "use strict;"
in all my scripts!

And now I don't have to look at either one of them - "use strict;" or "use warnings;"
ever again! :)


(Next I've got to figure out how to hide "$|=1;" )


~greg









.



Relevant Pages

  • Re: DocumentHTML ?
    ... automated downloading of about 10 GB of HTML from various web sites ... use warnings; # do not leave it out. ... to set your security settings to a low and possibly unsafe level. ...
    (comp.lang.perl.misc)
  • Re: Windows Internet Explorer 7 beta - Security Warnings
    ... .vbs/.bat scripts and programs from mapped network drives. ... when I use the UNC path, I m not getting these warnings (Ex. ... running a script from the command line, I also get a security warning. ... this is a settings change rather than a "problem". ...
    (microsoft.public.security)
  • Re: [PATCH -mm] sys_semctl gcc 4.1 warning fix
    ... with merge into git for some parts) that does that following: ... not everyone has your scripts or the time to use them. ... warnings of others. ... even starting with diff between the trees works fairly well. ...
    (Linux-Kernel)
  • Re: Oh Boy, Polar Lights Enterprises
    ... RLM wrote: ... I'm assuming there's at least a couple folks out there who have actually ... Any hints, warnings or glaring stuff that I need ...
    (rec.models.scale)
  • Re: Component pet peeves
    ... Hints and warnings may not, strictly, mean careless coding, ... but no hints and warnings is certainly an indicator that, ...
    (borland.public.delphi.non-technical)