RE: Mechanize: first attempt at scraping (should be something trivial)

2013-03-13 Thread G M
Definitely appears to be network related as I'm getting this when using warnings/fatalsToBrowser: Error GETing http://www.easyjet.com/en/: Can't connect to www.easyjet.com:80 (connect: Connection refused) > Date: Wed, 13 Mar 2013 14:19:00 -0700 > Subject: Re: Mechanize:

Re: Mechanize: first attempt at scraping (should be something trivial)

2013-03-13 Thread Charles DeRykus
On Wed, Mar 13, 2013 at 1:08 PM, G M wrote: > Hi, > > Yeah I tried putting a die line in after doing a bit of googling, I've got a > print "mech ran" line where you've got "die", doesn't print anything out > though :( > > > Hm, the problem is that Mech by default throws fatal errors so if it coul

RE: Mechanize: first attempt at scraping (should be something trivial)

2013-03-13 Thread G M
Hi, Yeah I tried putting a die line in after doing a bit of googling, I've got a print "mech ran" line where you've got "die", doesn't print anything out though :( Cheers, G > Date: Wed, 13 Mar 2013 13:04:39 -0700 > Subject: Re: Mechanize: first

Re: Mechanize: first attempt at scraping (should be something trivial)

2013-03-13 Thread Charles DeRykus
On Wed, Mar 13, 2013 at 12:09 PM, G M wrote: > > Hi all, > > I'm making an attempt at my first screen scraping script. > > For some reason the script doesn't continue after the invocation of the get > method on the last line: > > use strict; > use WWW::Mechanize; > use HTML::TokeParser; > use Dat

Re: Mechanize: first attempt at scraping (should be something trivial)

2013-03-13 Thread Lawrence Statton
On 03/13/2013 01:46 PM, Andy Bach wrote: Wide character in print at /usr/local/bin/mech_test.pl line 18. that's the print page. By the way -- you can eliminate the wide-char warniung by telling perl that your terminal can eat UTF-8 encoded unicode binmode STDOUT, ":utf8"; -- To unsubscri

Re: Mechanize: first attempt at scraping (should be something trivial)

2013-03-13 Thread Andy Bach
On Wed, Mar 13, 2013 at 2:09 PM, G M wrote: > > I'm making an attempt at my first screen scraping script. Works here: !/usr/bin/perl use strict; use WWW::Mechanize; use HTML::TokeParser; use Data::Dumper; print "Content-type: text/html\n\n"; print "setting up mech"; my $agent = WWW::Mechanize->

Re: Mechanize: first attempt at scraping (should be something trivial)

2013-03-13 Thread Jim Gibson
On Mar 13, 2013, at 12:09 PM, G M wrote: > > Hi all, > > I'm making an attempt at my first screen scraping script. > > For some reason the script doesn't continue after the invocation of the get > method on the last line: > > use strict; > use WWW::Mechanize; > use HTML::TokeParser; > use Da