Re: WWW::Mechanize requires wget

2017-04-04 Thread John SJ Anderson
> On 4Apr2017, at 11:13, SSC_perl wrote: > >> On Apr 4, 2017, at 10:59 AM, John SJ Anderson wrote: >> >> I’m not sure what was behind the resolution of your problem, but I can >> assure you I’m typing this on a Macintosh without wget installed, and >> WWW::Mechanize works just fine. > >

Re: WWW::Mechanize requires wget

2017-04-04 Thread John SJ Anderson
> On 4Apr2017, at 10:43, SSC_perl wrote: > > This is a heads up for anyone wanting to use WWW::Mechanize on OS X. [snip] Apple ships ‘curl’ instead of ‘wget’. Always has; not sure why. ‘wget’ is *NOT* required for WWW::Mechanize on MacOS, however. I’m not sure what was behind the reso

Re: WWW::Mechanize requires wget

2017-04-04 Thread SSC_perl
> On Apr 4, 2017, at 12:01 PM, John SJ Anderson wrote: > > ¯\_(ツ)_/¯ It’s been awhile since ascii art made me laugh. That’s a good one! :) -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: WWW::Mechanize requires wget

2017-04-04 Thread Shlomi Fish
On Tue, 4 Apr 2017 10:43:27 -0700 SSC_perl wrote: > This is a heads up for anyone wanting to use WWW::Mechanize on OS X. > > I’ve been fighting with WWW::Mechanize all morning, trying to get it > to work with no success. There were no error messages telling me what was > wrong. I

Re: WWW::Mechanize requires wget

2017-04-04 Thread SSC_perl
> On Apr 4, 2017, at 10:59 AM, John SJ Anderson wrote: > > I’m not sure what was behind the resolution of your problem, but I can assure > you I’m typing this on a Macintosh without wget installed, and WWW::Mechanize > works just fine. Weird. Which OS are you running? I’m on 10.11.6.

Re: WWW::Mechanize::Firefox not waiting for page loaded

2015-02-10 Thread Omega -1911
On Tue, Feb 10, 2015 at 5:10 AM, Gary Stainburn < gary.stainb...@ringways.co.uk> wrote: > Hi folks, > > I'm porting a WWW::Mechanize based program to WWW::Mechanize::Firefox > because > the web site I access is now much more Javascript based and maintenance is > getting to be a nightmare. > > Howe

Re: WWW::Mechanize question

2008-05-31 Thread Gunnar Hjalmarsson
Richard Lee wrote: what is wrong w/ below? I would think this would work but this is spitting out use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); my $url = 'http://10.212.100.1'; #$mech->credentials('user1', 'passwd1'); my $page = $mech->get( $url ); print "$pa

Re: WWW::Mechanize

2007-10-12 Thread Paul Lalli
On Oct 11, 3:31 pm, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > On 11 Oct, 16:20, [EMAIL PROTECTED] (Paul Lalli) wrote: > Paul, sorry the issue is that it doesn't work :) That's a phenomenally bad error description. Only *you* know what you want your script to do. None of us have any way of k

Re: WWW::Mechanize

2007-10-12 Thread [EMAIL PROTECTED]
On 11 Oct, 16:20, [EMAIL PROTECTED] (Paul Lalli) wrote: > On Oct 11, 8:35 am, [EMAIL PROTECTED] > > ([EMAIL PROTECTED]) wrote: > > Hi, I've been playing around with the following script as I would like > > to access data on a website that I need to log into first. > > > As you can see I'm attemptin

Re: WWW::Mechanize

2007-10-11 Thread yitzle
I'm with Paul. The code looks right and no "issue" was defined. However, this line might be "wrong": my $content = get $url; A line I often use in my Mechanize using scripts is: my $content = $mech->response()->decoded_content() Truth be told, I'm not familar with the 'get' function (is that the m

Re: WWW::Mechanize

2007-10-11 Thread Paul Lalli
On Oct 11, 8:35 am, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Hi, I've been playing around with the following script as I would like > to access data on a website that I need to log into first. > > As you can see I'm attempting to login into the main page and then > check the contents of the s

Re: WWW::Mechanize Help!

2007-07-09 Thread Paul Lalli
On Jul 9, 11:35 am, [EMAIL PROTECTED] (Scbauer) wrote: > Im currently trying to get all the options with in a Select> selected using WWW::Mechanize with no luck. Any ideas? You want the possible_values() method of the form in question. Observe: $ cat select.html Sample file http://www.exa

Re: www::mechanize question

2007-04-01 Thread Peter Scott
On Fri, 30 Mar 2007 20:45:43 +0100, Rob Dixon wrote: > Jason Roth wrote: >> >> I'm using www::mechanize to submit a form to a website, and one of >> the fields is disabled (and enabled by javascript on the page which >> obviously isn't running). When I try to set a value for this field I >> get

Re: www::mechanize question

2007-03-30 Thread Mumia W.
On 03/30/2007 01:20 PM, Jason Roth wrote: I'm using www::mechanize to submit a form to a website, and one of the fields is disabled (and enabled by javascript on the page which obviously isn't running). When I try to set a value for this field I get a "no such field" error. How to I set a value

Re: www::mechanize question

2007-03-30 Thread Rob Dixon
Jason Roth wrote: I'm using www::mechanize to submit a form to a website, and one of the fields is disabled (and enabled by javascript on the page which obviously isn't running). When I try to set a value for this field I get a "no such field" error. How to I set a value for, and enable, dis

Re: WWW::Mechanize question

2006-01-17 Thread Brano Gerzo
Randal L. Schwartz [RLS], on , , 2006 at 09:01 (-0800) contributed this to our collective wisdom: "Ing>> Problem comes, when I want to cache webpage with forms (POST). RLS> This is strange. POST requests are not necessarily idempotent, and this is RLS> why caches never cache them. Perhaps you

Re: WWW::Mechanize question

2006-01-17 Thread Randal L. Schwartz
> ""Ing" == "Ing Branislav Gerzo" <[EMAIL PROTECTED]> writes: "Ing> Problem comes, when I want to cache webpage with forms (POST). This is strange. POST requests are not necessarily idempotent, and this is why caches never cache them. Perhaps you want to turn these POSTs into GETs instead,

RE: WWW::Mechanize, save images from a page

2005-12-22 Thread Dhanashri Bhate
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 1:41 AM To: beginners@perl.org Subject: RE: WWW::Mechanize, save images from a page >>> Ok perhaps it was towards flippant of me to ask about regard to domain reputation.

RE: WWW::Mechanize, save images from a page

2005-12-22 Thread mtbr1221
- Original Message - From: Dhanashri Bhate <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>, Sent: Thu, 22 Dec 2005 13:24 Subject: Fwd: RE: WWW::Mechanize, save images from a page Well, All I have to say is that my basic understanding of perl language and how to download a link

RE: WWW::Mechanize, save images from a page

2005-12-21 Thread Dhanashri Bhate
rl - failed\n"; } } else { print "Did not find the image\n"; } === -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 12:22 AM To: [EMAIL PROTECTED] Subject: RE: WWW::Mechanize, save ima

RE: WWW::Mechanize, save images from a page

2005-12-21 Thread mtbr1221
(OP failed to call my attention to the fact that OP sent this to me off list) (and I already unknowingly replied this directly to OP) (so, here it is now for list) (grins, people :-) On Thu, 22 Dec 2005 10:52 , Dhanashri Bhate <[EMAIL PROTECTED]> sent: > >I surely missing something very simple! :

RE: WWW::Mechanize, save image - WORKAROUND

2005-12-21 Thread Dhanashri Bhate
uot;Did not find the image\n"; } == -Original Message- From: Dhanashri Bhate [mailto:[EMAIL PROTECTED] Sent: Thursday, December 22, 2005 11:17 AM To: [EMAIL PROTECTED]; beginners@perl.org Subject: RE: WWW::Mechanize, save images from a page Hello Alan, Thanks a lot

RE: WWW::Mechanize, save images from a page

2005-12-21 Thread Dhanashri Bhate
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 20, 2005 11:33 PM To: beginners@perl.org Subject: re: WWW::Mechanize, save images from a page (I had tried to reply via nntp news which didn't work. I just now subscribed to the emailing

RE: WWW::Mechanize, save images from a page

2005-12-21 Thread Dhanashri Bhate
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 20, 2005 11:33 PM To: beginners@perl.org Subject: re: WWW::Mechanize, save images from a page (I had tried to reply via nntp news which didn't work. I just now subscribed to the emailing

RE: WWW::Mechanize, save images from a page

2005-12-21 Thread Dhanashri Bhate
Hello, DB> If I do as you have mentioned above, $mech-success is False. DB> I tried to get the complete the URL by concatenating the $imageref->base and DB> $imageref->url. And then issue get on this complete url. DB> DB> my $imageurl = $imageref->url ; DB> my $imagebase = $imag

re: WWW::Mechanize, save images from a page

2005-12-21 Thread Peter Scott
On Tue, 20 Dec 2005 23:33:15 +, mtbr1221 wrote: > But in looking at the doc: > > > $mech->find_image() > > Finds an image in the current page. It returns a WWW::Mechanize::Image > object which describes the image. If it fails to find an image it returns > undef. > > > That quote from doc

re: WWW::Mechanize, save images from a page

2005-12-20 Thread mtbr1221
(I had tried to reply via nntp news which didn't work. I just now subscribed to the emailing list. this is emailed to the list). [EMAIL PROTECTED] (Dhanashri Bhate) writes: > I tried using the find_image function to get the reference of the image ( as > shown in the script below ). > > But do no

Re: WWW::Mechanize, save images from a page

2005-12-20 Thread Ing. Branislav Gerzo
Dhanashri Bhate [DB], on Tuesday, December 20, 2005 at 17:53 (+0530) wrote the following: DB> If I do as you have mentioned above, $mech-success is False. ( $mech->get DB> expects a url ) DB> I tried to get the complete the URL by concatenating the $imageref->base and DB> $imageref->url. And then

RE: WWW::Mechanize, save images from a page

2005-12-20 Thread Dhanashri Bhate
DB> I am currently automating some UI tests with the help of WWW::Mechanize DB> module. DB> I need to save images on a webpage. DB> print "Found the image, reference is : $imageref\n"; if you have URL in $imageref, what is problem with saving ? $mech->get($imageref); and save_cont

RE: WWW::Mechanize, save images from a page

2005-12-20 Thread Dhanashri Bhate
DB> I am currently automating some UI tests with the help of WWW::Mechanize DB> module. DB> I need to save images on a webpage. DB> print "Found the image, reference is : $imageref\n"; if you have URL in $imageref, what is problem with saving ? $mech->get($imageref); and save_cont

Re: WWW::Mechanize, save images from a page

2005-12-20 Thread Ing. Branislav Gerzo
Dhanashri Bhate [DB], on Tuesday, December 20, 2005 at 16:51 (+0530) thinks about: DB> I am currently automating some UI tests with the help of WWW::Mechanize DB> module. DB> I need to save images on a webpage. DB> print "Found the image, reference is : $imageref\n"; if you have URL in $imag

Re: WWW::Mechanize doesnt download https webpage

2005-11-07 Thread Ing. Branislav Gerzo
Ing. Branislav Gerzo [IBG], on Monday, November 07, 2005 at 13:27 (+0100) has on mind: IBG> use IO::Socket::SSL; #it is installed when I delete ^^ this one, and write: use Crypt::SSLeay; everything works. strange :) -- How do you protect mail on web? I use http://www.2pu.net [Brains aren't e

Re: WWW::Mechanize java navigation (Answer)

2005-03-17 Thread Peter Rabbitson
On Thu, Feb 24, 2005 at 12:45:01PM -0500, Peter Rabbitson wrote: > Hello list. I had very good luck using the WWW::Mechanize object for various > automated data collectors until I stumbled over > http://www.mymerchantview.net. As you can imagine the problems begin when I > do my first ->follow_link

Re: WWW::Mechanize java navigation

2005-02-24 Thread rnmscott
Quoting Peter Rabbitson <[EMAIL PROTECTED]>: > > Whereas my original question was: > > What can I use that would be as functional as WWW::Mechanize while at the > same time compatible with the site mentioned above. > > -- I'd be interested in an answer to this too, as I have a similar sort of

Re: WWW::Mechanize java navigation

2005-02-24 Thread Chris Devers
On Thu, 24 Feb 2005, Peter Rabbitson wrote: > What can I use that would be as functional as WWW::Mechanize while at > the same time [Javascript aware]. To do this properly, you need to have a proper Javascript engine. I'm not aware of any Javascript hooks for Perl, but then, all modern web bro

Re: WWW::Mechanize java navigation

2005-02-24 Thread Todd W
"Peter Rabbitson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > On Thu, Feb 24, 2005 at 03:11:08PM -0600, [EMAIL PROTECTED] wrote: > > > <---snip whole bunch of misunderstaning---> > > > You have your answer then.. I guess. > > >From FAQ=WWW::Mechanize; > > > > How can I get

Re: WWW::Mechanize java navigation

2005-02-24 Thread perlmails
- Original Message - From: "Peter Rabbitson" <[EMAIL PROTECTED]> To: Sent: Thursday, February 24, 2005 3:45 PM Subject: Re: WWW::Mechanize java navigation On Thu, Feb 24, 2005 at 03:11:08PM -0600, [EMAIL PROTECTED] wrote: <---snip whole bunch of misunderstanin

Re: WWW::Mechanize java navigation

2005-02-24 Thread perlmails
- Original Message - From: "Peter Rabbitson" <[EMAIL PROTECTED]> To: Sent: Thursday, February 24, 2005 3:02 PM Subject: Re: WWW::Mechanize java navigation use WWW::Mechanize; use Crypt::SSLeay; my $m_crawl = WWW::Mechanize->new; $m_crawl->get ('http://mym

Re: WWW::Mechanize java navigation

2005-02-24 Thread perlmails
Have you installed Crypt::SSLeay for https:// ? Could you print the header at least with your code? - Original Message - From: "Peter Rabbitson" <[EMAIL PROTECTED]> To: Sent: Thursday, February 24, 2005 11:45 AM Subject: WWW::Mechanize java navigation Hello list. I had very good luck us

Re: WWW::Mechanize java navigation

2005-02-24 Thread Peter Rabbitson
On Thu, Feb 24, 2005 at 03:11:08PM -0600, [EMAIL PROTECTED] wrote: <---snip whole bunch of misunderstaning---> > You have your answer then.. I guess. > >From FAQ=WWW::Mechanize; > > How can I get WWW::Mechanize to execute this JavaScript? > You can't. JavaScript is entirely client-based, and

Re: WWW::Mechanize java navigation

2005-02-24 Thread Peter Rabbitson
use WWW::Mechanize; use Crypt::SSLeay; my $m_crawl = WWW::Mechanize->new; $m_crawl->get ('http://mymerchantview.net'); $m_crawl->follow_link (n => '1'); print $m_crawl->content; the above code yields: 501 Protocol scheme 'javascript' is not supported On Thu, Feb 24, 2005 at 02:20:29PM -0600

Re: WWW::Mechanize question

2004-05-13 Thread Paul Johnson
On Wed, May 12, 2004 at 12:59:44PM -0500, Ben Miller wrote: > my @links = $mech->find_all_links(tag = "a", text_regex => qr/\bWORD\b/i ); ... tag => "a", ... I suspect. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: WWW::Mechanize question / array values

2004-05-12 Thread JupiterHost.Net
Next and hopefully last question for now on a more general subject: Why do array members take the form of 'ARRAY(0x90df74)' rather than the actual content fed to an array or variable? Whatever variable looks like that when printed if an array reference. for(@links) { print @{$_}; } see perldoc p

Re: WWW::Mechanize question / array values

2004-05-12 Thread Ben Miller
On 5/12/04 1:26 PM, Paul Johnson wrote: > On Wed, May 12, 2004 at 12:59:44PM -0500, Ben Miller wrote: > >> my @links = $mech->find_all_links(tag = "a", text_regex => qr/\bWORD\b/i ); > > ... tag => "a", ... > > I suspect. Thank you to Paul and to Lee for their quick and efficient answer. That

Re: WWW::Mechanize question

2004-05-12 Thread JupiterHost.Net
Ben Miller wrote: Hi, Hello, I'm reading/scraping hyperlinks from a specific web page using the following while incorporating the WWW::Mechanize module: my @links = $mech->find_all_links(tag = "a", text_regex => qr/\bWORD\b/i ); try tag => 'a' you are trying to assign a value of a to tag the wa

Re: WWW::Mechanize and authentication

2004-03-03 Thread WC -Sx- Jones
David O'Dell wrote: I've been using WWW::Mechanize to test our websites which involves filling out the fields in the page and submitting them. The problem I'm having is that we have a new site that has a pop-up window for authentication. I'm sure there is a way to authenticate through this window

RE: Www::mechanize https erratic response

2003-11-19 Thread Paul Kraus
When finished it would run as a weekly cron job. Right now its just being run manually. Thanks on the resources! Paul -Original Message- From: Kevin Old [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 4:27 PM To: [EMAIL PROTECTED] Cc: 'Beginners Perl' Subjec

Re: Www::mechanize https erratic response

2003-11-19 Thread Kevin Old
On Wed, 2003-11-19 at 16:14, Paul Kraus wrote: > I have a script that connects to an https page. > > It will randomly connect and run. The rest of the time it fails with a > 500 error. > > It truly is random. I just rerun the script until it displays results. > If I do this via a browser it will

RE: WWW::Mechanize and Cookies

2003-09-04 Thread Hanson, Rob
ssage- From: rkl [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 3:40 AM To: perl Subject: Re: WWW::Mechanize and Cookies Hi all: Are these libs: WWW:: Mechanize and HTTP::Cookies in perl or mod_perl? -rkl Pablo Fischer writes: > Hi! > > Im creating an script that

Re: WWW::Mechanize and Cookies

2003-09-04 Thread wiggins
On Thu, 04 Sep 2003 00:39:55 -0700, "rkl" <[EMAIL PROTECTED]> wrote: > Hi all: > > Are these libs: WWW:: Mechanize and HTTP::Cookies in perl or mod_perl? > Written in or available in? Written in: Perl Available in: yes They are standard Perl

Re: WWW::Mechanize and Cookies

2003-09-04 Thread rkl
Hi all: Are these libs: WWW:: Mechanize and HTTP::Cookies in perl or mod_perl? -rkl Pablo Fischer writes: Hi! Im creating an script that checks for broken links. Im using this modules: use WWW::Mechanize; use HTTP::Cookies; What Im trying to do?, I need to login in a website (cause to