Re: DocumentHTML ?
- From: "~greg" <g_m@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 Feb 2007 13:48:07 -0500
Sinan, and Joe,
I am very sorry about this. And I beg your forgiveness.
And I most profusely apologize to you both.
A couple of days ago I had posted here asking about
"Automating Internet Explorer".
My question was about OLE,
And I got one response that simply ignored my question
and told me to use Mechanize instead.
Gentlemen, I am old.
It seemed to me the same thing was happening again here.
When I saw that Mr Unur was telling me to use
Win32-IE-Mechanize instead, - I started dimming out.
When next I saw him telling me to "use warnings",
I started blanking out.
And when, finally, I saw that he'd added "use warnings" to my original code
-- but ---it seemed to me, when I skimmed over it, with these old eyes,
--- nothing else ..!..
Gentlemen, I'm old.
I glanced over the rest of the script and didn't notice
that any other changes had been made than the addition
of "use warnings".
I thought Mr Unur had "middle-posted" and left,
after telling me to use warnings.
~~
Also,
I am not a professional.
I write maybe 3 or 4 small scripts a day, purely for my own needs.
It would never have occurred to me that explicit "use strict"
and "use warnings" is a courtesy to others.
I will do it from now on.
~~~
Again, I am very sorry about all of this.
I do understand, now, finally, how you reacted to me.
Very much the same way that I had mistakenly initially reacted to you.
But you didn't know that. You didn't know how or why I had reacted
the way I did. And I didn't know that you didn't know.
So your reaction to me came as a complete surprise to me.
I think perhaps such total mis-communication
has occured before on usenet. If so it would explain a lot.
Anyway, thank you both again.
$IEWindow->Document->documentElement->{outerHTML};
is ideed exactly what I was asking for. It works.
(How ever did you find it?)
And I will remember to include the explicit "use strct" and "use warnings"
from now on.
Thank you!
Greg.
"A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx> wrote in message news:Xns98E46D1FA9AFFasu1cornelledu@xxxxxxxxxxxx
"~greg" <g_m@xxxxxxxxxxxxxxxxxx> wrote in
news:o-KdnS_QLYiwMH7YnZ2dnUVZ_qOpnZ2d@xxxxxxxxxxx:
17/lib/Win32/
"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_
IE/Mechanize.pm#%24ie-%3Econtent
use strict;
use warnings; # do not leave it out.
Repeat:
Do not leave
use strict;
use warnings;
out in your source code (whatever peculiar development environment you
might have).
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,
Well, if you had followed the link, you would have seen:
$ie->content
Fetch the outerHTML from the $ie->Document->documentElement.
I have found no way to get to the exact contents of the document. This
is basically the interpretation of IE of what the HTML looks like and
beware all tags are upcased :(
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.
Note the *may*. I have never needed to tinker with any security settings
and I have used the module for quite complicated tasks where the sites
were so dependent on IE that no other solution would have worked.
You are free not to take advice and try to re-invent the wheel. I am not
likely to waste my time helping you do that.
(Part of what I mean by adding value to IE is ADDING security, not
subtracting it!)
One can choose to use CPAN modules and contribute improvements as one
comes up with them. IMHO, that is both more productive and more useful
to everyone.
But of course I use warnings!
I can only see what you chose to show.
<SNIP>
All this stuff about your configuration and not one comment about
whether the solution I posted worked for you or not (a solution which I
copied straight from Win32::IE::Mechanize). I will now bid you farewell.
Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
- Follow-Ups:
- Re: DocumentHTML ?
- From: Tad McClellan
- Re: DocumentHTML ?
- From: A. Sinan Unur
- Re: DocumentHTML ?
- References:
- DocumentHTML ?
- From: ~greg
- Re: DocumentHTML ?
- From: A. Sinan Unur
- Re: DocumentHTML ?
- From: ~greg
- Re: DocumentHTML ?
- From: A. Sinan Unur
- DocumentHTML ?
- Prev by Date: Re: Unable to install Math::BigInt::GMP on Solaris 10
- Next by Date: Re: DocumentHTML ?
- Previous by thread: Re: DocumentHTML ?
- Next by thread: Re: DocumentHTML ?
- Index(es):
Relevant Pages
|