Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: small small script using WWW::Mechanize

by Khen1950fx (Canon)
on Sep 18, 2013 at 01:17 UTC ( #1054559=note: print w/ replies, xml ) Need Help??


in reply to small small script using WWW::Mechanize

You almost had it:

#!/usr/bin/perl -l use strict; use warnings; use WWW::Mechanize; my $url = 'https://www.google.de/'; my $agent = WWW::Mechanize->new; my $response = $agent->get($url); my $link = $agent->find_link( text => 'Bilder' ); print "The Google Bilder search URL is: ", Dumper ( $link->url );


Comment on Re: small small script using WWW::Mechanize
Download Code
Replies are listed 'Best First'.
Re^2: small small script using WWW::Mechanize
by madM (Beadle) on Sep 18, 2013 at 01:35 UTC
    thanks a lot! :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054559]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2015-07-29 19:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls