Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: I need to automate/scrape data from IE

by hawtin (Prior)
on Dec 07, 2011 at 09:00 UTC ( #942180=note: print w/replies, xml ) Need Help??


in reply to I need to automate/scrape data from IE

The message you are getting back suggests that just using OLE won't work, however it is worth trying the simplest approach (just to prove that it won't do it).

use strict; use Win32::OLE; my $ie = Win32::OLE->new( 'InternetExplorer.Application' ) or die "error starting IE"; $ie->{visible} = 1; $ie->navigate( 'https://internal.site.of.doom/' ); sleep(4); if(!defined $ie->Document()) { print STDERR "Nope that failed as well"); } else { print "We have something back!\n"; }

Replies are listed 'Best First'.
Re^2: I need to automate/scrape data from IE
by CarlosT (Initiate) on Dec 07, 2011 at 17:44 UTC
    This code worked. It opened a browser window to the correct url. Can I do what I need to do just by using OLE?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://942180]
help
Chatterbox?
[LanX]: DBI: is there an easy method to get the content of a column as an array

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2018-07-16 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (344 votes). Check out past polls.

    Notices?