Re: Getting a specific page using WWW::Mechanize [SOLVED]

2017-04-25 Thread SSC_perl
ers, filling in every field by hand, which gets old real fast when you have to do it repeatedly. If anyone is looking to automate tasks like this for testing or whatever else, I whole heartedly recommend WWW::Mechanize. It’s a real time saver. Thanks again to Chas for the reply. Fr

Re: Getting a specific page using WWW::Mechanize

2017-04-25 Thread SSC_perl
> On Apr 25, 2017, at 10:09 AM, Chas. Owens wrote: > > Are you using JavaScript to redirect the user to the sorry page? Nope. All navigation is handled by perl. Thanks for the link, though. Frank

Re: Getting a specific page using WWW::Mechanize

2017-04-25 Thread Chas. Owens
Are you using JavaScript to redirect the user to the sorry page? If so then WWW::Mechanise won't redirect. It doesn't understand JavaScript. Happily, there are drop in replacements for it that do: http://search.cpan.org/~oalders/WWW-Mechanize-1.84/lib/WWW/Mechani

Re: Getting a specific page using WWW::Mechanize

2017-04-25 Thread SSC_perl
used as the sub-template, if not, then sorry.htm is shown with the error message. This, of course, works as expected when placing an order by hand. When placing a successful order with WWW::Mechanize, receipt.htm is shown correctly in $mech->content(). However, if the order

Getting a specific page using WWW::Mechanize

2017-04-25 Thread SSC_perl
I’ve written a script using WWW::Mechanize to place test orders in SurfShop. I wish I had know it could do this before. :\ For some reason, I was under the impression that it was only good for scraping. The script works great, but I need to find a way to get the contents of

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 >

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 b

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

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?

WWW::Mechanize requires wget

2017-04-04 Thread SSC_perl
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 checked my firewall to see if anything was being

CPAN install problems - WWW::Mechanize::Firefox fails allmost every time

2015-02-19 Thread Martin Kaspar
hi Gary, hi List, today i am running opensuse 13.1 - and i am trying to install mozrepl and perl BTW - friends told me to avoid all perlbrew tings... so i did the following perl -MCPAN -e shell cpan> install WWW::Mechanize::Firefox - it failed... see Parse errors: No plan found in

Yum / CPAN install problems - WWW::Mechanize::Firefox

2015-02-16 Thread Gary Stainburn
I've got a Fedora 21 laptop that I'm using to develop a WWW::Mechanize::Firefox based app which is going well. I've tried now to replicate this on two servers ready to put it live but I'm having the same install problems. One is F19, and one is F20. On both machines I&#x

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 &

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

2015-02-10 Thread Gary Stainburn
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. However, I'm struggling on the basics. Yesterday I started off with a very basic program. I

WWW::Mechanize::field problem

2014-12-04 Thread Patton, Billy N
I’m having trouble with setting a field on a web page. Here is how I’m attempting to do this: ## ## fourth page ## ok($mech->form_name('ftp_information'),"getting the ftp_information form"); ok($mech->field('pFTPHostname','dogs'), 'Setting ftp host name to dogs'); ok($mech->field('pFTP

Re: using WWW::Mechanize why am i getting this proxy issue?

2011-11-23 Thread Rajeev Prasad
Sent: Tuesday, November 22, 2011 3:43 PM Subject: using WWW::Mechanize thru proxy to https(SSL) with website/form authentication, proxy error!! Here is the prob description in short: 1.    post your url in browser: https://myrel/files/file.doc 2.    you get a logon page (URL still looking same) 3

using WWW::Mechanize thru proxy to https(SSL) with website/form authentication, proxy error!!

2011-11-22 Thread Rajeev Prasad
are done!!! (saves the file to default location) here is the script so far: #!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; #print "Content-type: text/html\n\n"; my $username = "myid"; my $password = "mypass"; my $outfile = "testout.doc"; $ENV

Re: error when installing WWW::Mechanize

2011-07-19 Thread Rob Coops
se errors: Bad plan. You planned 5 tests but ran 4. > Files=54, Tests=589, 24 wallclock secs ( 0.23 usr 0.04 sys + 7.04 > cusr 0.82 csys = 8.13 CPU) > Result: FAIL > Failed 1/54 test programs. 0/589 subtests failed. > make: *** [test_dynamic] Error 255 > JESSE/WWW-Mechanize-1.68.t

Re: error when installing WWW::Mechanize

2011-07-19 Thread Agnello George
sys = 8.13 CPU) Result: FAIL Failed 1/54 test programs. 0/589 subtests failed. make: *** [test_dynamic] Error 255 JESSE/WWW-Mechanize-1.68.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports JESSE/WWW-Mechanize-1.68.tar.gz Runni

Re: error when installing WWW::Mechanize

2011-07-19 Thread Christian Walde
On Tue, 19 Jul 2011 09:57:43 +0200, Agnello George wrote: I get the following error when i install WWW::Mechanize via CPAN . Can some one suggest me how to fix this . thanks You're running an oldish perl and get what's basically a Unicode error in one single instance. Suggest

Re: error when installing WWW::Mechanize

2011-07-19 Thread Francisco Rivas
Hello I think that one approach can be install all the modules marked as "not installed". Test::Memory::Cycle is not installed. Just an idea. Have a very nice day. 2011/7/19 Agnello George > Hi > > > I get the following error when i install WWW::Mechanize via CPAN .

error when installing WWW::Mechanize

2011-07-19 Thread Agnello George
Hi I get the following error when i install WWW::Mechanize via CPAN . Can some one suggest me how to fix this . thanks === PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib

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'); m

WWW::Mechanize question

2008-05-31 Thread Richard Lee
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->

Re: 400 bad request while retrieving a frame page with WWW::Mechanize

2007-11-18 Thread lcerneka
> >> >> > works fine... > > >> >> This happens often enough that it is covered in the FAQ for > >> >> WWW::Mechanize: > >> [snip] > >> > Thanks guys for tries and good link... but I still cannot figure it > >> > out..

Re: 400 bad request while retrieving a frame page with WWW::Mechanize

2007-11-18 Thread yitzle
On Nov 18, 2007 11:30 AM, Peter Scott <[EMAIL PROTECTED]> wrote: > > Okay, I reproduced this and solved it. First, I verified that I got a > proper response from Safari. Then I ran tcpdump to compare the request > sent by Safari with the one sent by Mech. (Regrettably, setting > LWP::Debug +conn

Re: 400 bad request while retrieving a frame page with WWW::Mechanize

2007-11-18 Thread Peter Scott
to data retrieval and >> > this is the first time such an error occurs... The 400 error code is >> > about malformed URL's syntax or request header... Any other idea? > > #!/usr/bin/perl -w > use strict; > use warnings; > use WWW::Mechanize; > > my $mec

Re: 400 bad request while retrieving a frame page with WWW::Mechanize

2007-11-17 Thread lcerneka
an html page with a 400 error code (Bad Request) > >> > When asking for this page directly from a browser (Firefox or IE) it > >> > works fine... > > >> This happens often enough that it is covered in the FAQ for WWW::Mechanize: > [snip] > > Thanks guys for t

Re: 400 bad request while retrieving a frame page with WWW::Mechanize

2007-11-17 Thread Peter Scott
g for this page directly from a browser (Firefox or IE) it >> > works fine... >> >> This happens often enough that it is covered in the FAQ for WWW::Mechanize: [snip] > Thanks guys for tries and good link... but I still cannot figure it > out... I tried to debug with use LWP::

Re: 400 bad request while retrieving a frame page with WWW::Mechanize

2007-11-17 Thread lcerneka
fine... > > This happens often enough that it is covered in the FAQ for WWW::Mechanize: > >http://search.cpan.org/~petdance/WWW-Mechanize-1.32/lib/WWW/Mechanize... > > Hope this helps! > > --Tom Phoenix > Stonehenge Perl Training Thanks guys for tries and good link... b

Re: 400 bad request while retrieving a frame page with WWW::Mechanize

2007-11-16 Thread Tom Phoenix
On 11/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I get an html page with a 400 error code (Bad Request) > When asking for this page directly from a browser (Firefox or IE) it > works fine... This happens often enough that it is covered in the FAQ for WWW::Mechan

Re: 400 bad request while retrieving a frame page with WWW::Mechanize

2007-11-16 Thread yitzle
On Nov 16, 2007 6:28 AM, <[EMAIL PROTECTED]> wrote: > Hi everyone > > I get an html page with a 400 error code (Bad Request) when running > the following code: > > #!/usr/bin/perl -w > use strict; > use warnings; > use WWW::Mechanize; > > my $mech = WWW::Me

400 bad request while retrieving a frame page with WWW::Mechanize

2007-11-16 Thread lcerneka
Hi everyone I get an html page with a 400 error code (Bad Request) when running the following code: #!/usr/bin/perl -w use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new( agent => 'Mozilla 2.0.0.9' ); $mech->get('http://www.aeroporto.fvg

RE: learning WWW::Mechanize

2007-11-12 Thread Dan Fish
Assuming what you are really looking for from this is the page returned by the search, then you need to move the line: print $mechObject -> content; to the end. -Dan --- #!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $queryStr

Re: learning WWW::Mechanize

2007-11-12 Thread Rob Dixon
newBee wrote: Hi after going over the FAQ and the examples I decided to write a small script to understand the WWW::Mechanize module. Since Google has one field and two buttons I thought this would be a straight forward one. So I wrote the fallowing script. At the end of the script I thought the

learning WWW::Mechanize

2007-11-12 Thread newBee
Hi after going over the FAQ and the examples I decided to write a small script to understand the WWW::Mechanize module. Since Google has one field and two buttons I thought this would be a straight forward one. So I wrote the fallowing script. At the end of the script I thought the script will

Re: WWW::Mechanize

2007-10-12 Thread Paul Lalli
most recent content from the $mech user agent. That is: my $content = $mech->content(); rather than my $content = get $url; To put it more simply, you did something like this: my $x = 5; my $y = fctn($x); $x = 5; and then were shocked when $x equaled five. It's $y that you did somethin

Re: WWW::Mechanize

2007-10-12 Thread [EMAIL PROTECTED]
t; > sure if this is causing the issue? > > Causing *what* issue?! You haven't said what's wrong with your script > at all. You've not said what it does that you don't want it to do, or > what it does do that you don't want it to. > > What language is

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
ith your script at all. You've not said what it does that you don't want it to do, or what it does do that you don't want it to. What language is generated by the website in question is wholly irrelevant. WWW::Mechanize is just a browser. It cares no more about how the pa

WWW::Mechanize

2007-10-11 Thread [EMAIL PROTECTED]
uot; in this example). It seems that the servers webpages are generated in PHP so I'm not sure if this is causing the issue? I would be appreicate some advice. Thanks in advance. --- #!c:\\perl\\bin use strict; use WWW::Mechanize; use HTTP::Cookies; #use LWP::Debug qw(+); use LWP::Simple; u

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

WWW::Mechanize Help!

2007-07-09 Thread scbauer
Im currently trying to get all the options with in a selected using WWW::Mechanize with no luck. Any ideas? #!/usr/bin/perl use strict; use WWW::Mechanize; use Time::Local; use POSIX 'strftime'; my($url) = 'url'; my($pageCheck) = ""; my($form) = HTML:Form-&

Re: setting a hidden field with WWW::Mechanize

2007-06-23 Thread skywriter14
gt; wrote: > > > I have been trying to set some hidden form fields with > > WWW::Mechanize, but I get error that they are read only. > > Have you seen this entry in the FAQ? > > Why do I get "Input 'fieldname' is readonly"? > > You'

Re: setting a hidden field with WWW::Mechanize

2007-06-23 Thread Tom Phoenix
On 6/23/07, skywriter14 <[EMAIL PROTECTED]> wrote: I have been trying to set some hidden form fields with WWW::Mechanize, but I get error that they are read only. Have you seen this entry in the FAQ? Why do I get "Input 'fieldname' is readonly"? You're

setting a hidden field with WWW::Mechanize

2007-06-23 Thread skywriter14
Hello, I have been trying to set some hidden form fields with WWW::Mechanize, but I get error that they are read only. Is it a cannot-be-done case for all hidden input form fields? Does anyone has some tips for me? These fields are some times hidden, sometimes visible textfields. Right now I am

CPAN problem - Test::WWW::Mechanize

2007-05-09 Thread Gary Stainburn
Hi folks, I'm installing the missing dependencies onto a FC5 system to enable me to install RT3, but there's one module I can't install - Test::WWW::Mechanize From the output below can anyone see what my problem is. Ta cpan> install Test::WWW::Mechanize CPAN: Storable loade

WWW::Mechanize, problem with select

2007-04-01 Thread marco zucchelli
ect() function of WWW::Mechanize should do the job. This is the code I use: use WWW::Mechanize; use HTTP::Cookies; my $mech = WWW::Mechanize->new(agent => "WWW"); $mech->cookie_jar(HTTP::Cookies->new); my $url = "http://www.immobilienscout24.de/";; $mech->get($ur

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

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" er

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 v

www::mechanize question

2007-03-30 Thread Jason Roth
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,

Problems with installing WWW::Mechanize::Shell

2006-12-24 Thread Raphael Brunner
Dear Users... I want to install WWW::Mechanize::Shell on a actual debian-testing linux-box. Perl seems to normaly installed. But, I have errors during the install-process and don't know how to solve it btw. what the problem is... (please see at the end of this messages). Thanks for any hel

Re: Help with WWW::Mechanize - Next Question

2006-12-05 Thread Mathew Snyder
Rob Dixon wrote: > Mathew Snyder wrote: >> With all the help I've received I've been able to get this working. >> This is my >> text: >> #!/usr/bin/perl >> >> use warnings; >> use strict; >> use WWW::Mechanize; >> use HTML::Tok

Problems with installing WWW::Mechanize::Shell

2006-12-05 Thread Raphael Brunner
Dear Users... I want to install WWW::Mechanize::Shell on a debian-testing linux-box. But, I have errors during the process and don't know how to solve it btw. what the problem is... Thanks for any help and ideas... Greetings Raphael #> perl -MCPAN -e 'install WWW::Mechanize::

Re: Help with WWW::Mechanize - Next Question

2006-12-03 Thread Mathew
Rob Dixon wrote: > Mathew Snyder wrote: >> With all the help I've received I've been able to get this working. >> This is my >> text: >> #!/usr/bin/perl >> >> use warnings; >> use strict; >> use WWW::Mechanize; >> use HTML::Tok

Re: Help with WWW::Mechanize - Next Question

2006-12-03 Thread Rob Dixon
Mathew Snyder wrote: With all the help I've received I've been able to get this working. This is my text: #!/usr/bin/perl use warnings; use strict; use WWW::Mechanize; use HTML::TokeParser; my $username = 'msnyder'; my $password = 'xxx'; my $status = '

Help with WWW::Mechanize - Next Question

2006-12-02 Thread Mathew Snyder
With all the help I've received I've been able to get this working. This is my text: #!/usr/bin/perl use warnings; use strict; use WWW::Mechanize; use HTML::TokeParser; my $username = 'msnyder'; my $password = 'xxx'; my $status = 'open'; my $ag

Re: Help with WWW::Mechanize

2006-11-30 Thread Matt Johnson
re why the 'O' in either of > the > fields above is different but I made sure they are the same in the code. > > It seems like it isn't getting past the login screen for the page I'm trying > to > access. There's only one form on it with a two fields

Re: Help with WWW::Mechanize

2006-11-30 Thread Mathew Snyder
re the same in the code. It seems like it isn't getting past the login screen for the page I'm trying to access. There's only one form on it with a two fields, one called 'user' and the other 'pass' and a submit button. If I just run this #!/usr/bin/perl

Re: Help with WWW::Mechanize

2006-11-29 Thread Mathew
Well hot-damn! Ain't that sumthin? I'm going to design a keyboard that puts the zero next to the one. If we don't protect freedom of speech, how will we know who the assholes are? http://theillien.blogspot.com Tom Phoenix wrote: > On 11/28/06, Mathew Snyder <[EMAIL PROTECTED]> wrote: > >> I ha

Re: Help with WWW::Mechanize

2006-11-29 Thread Tom Phoenix
On 11/28/06, Mathew Snyder <[EMAIL PROTECTED]> wrote: I have a form I'm trying to fill out. One of the fields, despite being named in the HTML source keeps erroring out on me. fields => { "ValueOfStatus" => $status, "Value0fActor" => $username,

Re: Help with WWW::Mechanize

2006-11-29 Thread Rob Dixon
Mathew Snyder wrote: I have a form I'm trying to fill out. One of the fields, despite being named in the HTML source keeps erroring out on me. The HTML source: - Nobody ... The perl code: ... $agent->submit_form( form_number => '3', fields => { "ValueOfStatus"

Help with WWW::Mechanize

2006-11-28 Thread Mathew Snyder
I have a form I'm trying to fill out. One of the fields, despite being named in the HTML source keeps erroring out on me. The HTML source: - Nobody ... The perl code: ... $agent->submit_form( form_number => '3', fields => { "ValueOfStatus" => $status,

WWW::Mechanize

2006-05-12 Thread Gallagher, Tim \(NE\)
I am trying to create a script that will go out to dells website and pull warenty information for our dell computers. Has anyone worked with WWW::Mechanize? Any help would be appreciated. Here is the script that I am trying to get working. use strict; use WWW::Mechanize; my $url = "

WWW::Mechanize, getting link url/text

2006-04-13 Thread Dhanashri Bhate
Hi All, I'm trying to automate a test case where from a site map page, I need to get all the links and verify that clicking on the links is successful, for each link. Here's the code I've written and it works well, ( below is the relevant part of the code ( I have used strict, warn)) ==

Re: WWW::Mechanize question

2006-01-17 Thread Brano Gerzo
hem. Perhaps you want to turn these POSTs into GETs RLS> instead, if you know that they are requests that do not change the state of RLS> the server, and then you can use a lower level solution like HTTP::Cache to RLS> transparently cache the requests for WWW::Mechanize to use. RLS>

Re: WWW::Mechanize question

2006-01-17 Thread Randal L. Schwartz
Perhaps you want to turn these POSTs into GETs instead, if you know that they are requests that do not change the state of the server, and then you can use a lower level solution like HTTP::Cache to transparently cache the requests for WWW::Mechanize to use. Otherwise, I can't understa

WWW::Mechanize question

2006-01-17 Thread Ing. Branislav Gerzo
Hi all there, I'd like to use %subj% with caching options. I know how to use Cache::File; or WWW::Mechanize::Cached. Problem comes, when I want to cache webpage with forms (POST). I decide not to use WWW::Mechanize::Cached, because it uses as key given URL (as I decoded that from source

Re: problem extracting data with WWW::Mechanize whe

2006-01-15 Thread Ankur Gupta
On 1/15/06, Ankur Gupta <[EMAIL PROTECTED]> wrote: > Hi, > > I have a very simple WWW::Mechanize perl program which does the following > task. > 1. Gets the login URL. > 2. Enters username and password. > 3. Get another URL. > 4. Fill some fields of date range and

problem extracting data with WWW::Mechanize whe

2006-01-15 Thread Ankur Gupta
Hi, I have a very simple WWW::Mechanize perl program which does the following task. 1. Gets the login URL. 2. Enters username and password. 3. Get another URL. 4. Fill some fields of date range and submit. 5. Parse the content and create a report. It used to work until the web designer changed

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
Anyway, about downloading a link, all I had done earlier is use WWW::Mechanize, get($url) and then use function save_content to save it in a file, which works very well. I had used it earlier to get a ZIP file, the file was downloaded but could not be opened. That was the time when someone on this

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

2005-12-21 Thread mtbr1221
much help in order for you to be helped here. Contract yourself a tutor or learn more as I mentioned earlier and then come back here once that has happened. It appears that this is liable to end up as one of them: "ploink" ??. We'll see. -- Alan. Msg sent via CWNet - htt

RE: WWW::Mechanize, save image - WORKAROUND

2005-12-21 Thread Dhanashri Bhate
:) === #!/usr/local/bin/perl -w use strict; use diagnostics; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->quiet(0);#turn on warnings my $host = "abc.xyz.com"; my $url = "http://$host/em";; $mech->get($url); my $imageref = $mech

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
;url ; DB> my $imagebase = $imageref->base ; DB> $url = "$imagebase/$imageurl"; DB> print "Getting url $url\n"; DB> $mech->get($url); DB> >>>you dont need to do this - read: >>>http://search.cpan.org/~petdance/WWW-Mechanize->&g

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.

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

2005-12-20 Thread mtbr1221
> > But do not understand how I can save that image in a file. I didn't know how to do it. 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

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

2005-12-20 Thread Ing. Branislav Gerzo
ot;; DB> $mech->get($url); you dont need to do this - read: http://search.cpan.org/~petdance/WWW-Mechanize-1.16/lib/WWW/Mechanize/Link.pm DB> WWW::Mechanize::Image=HASH(0x850cb48) DB> Getting url DB> http://osqa12.mirapoint.com/em//images/eui/gen_login_logo.gif you should check for success, if it

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 ? &

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

2005-12-20 Thread Dhanashri Bhate
Dhanashri Bhate would like to recall the message, "WWW::Mechanize, save images from a page". -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

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 ? &

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"

WWW::Mechanize, save images from a page

2005-12-20 Thread Dhanashri Bhate
Hi All, I am currently automating some UI tests with the help of WWW::Mechanize module. I need to save images on a webpage. I tried using the find_image function to get the reference of the image ( as shown in the script below ). But do not understand how I can save that image in a file

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

WWW::Mechanize doesnt download https webpage

2005-11-07 Thread Ing. Branislav Gerzo
Hi all, i have a little problem, I use my favourite WWW::Mechanize to download webpages and so on, but I came to one problem: #!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; use IO::Socket::SSL; #it is installed my $mech = WWW::Mechanize->new(); $mech->agent_alias( 'W

Zip file download using WWW::Mechanize

2005-10-26 Thread Dhanashri Bhate
hine, my program is on Windows(Active Perl 5.8.7) #!/usr/bin/perl -w use strict; use WWW::Mechanize; my $login= "administrator"; my $password = "admin"; m

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 >

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

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

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.

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 ha

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. JavaSc

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 su

  1   2   >