in reply to Re^2: Crawling Relative Links from Webpages
in thread Crawling Relative Links from Webpages
There is only one hard-coded address in the code:
my $mech = WWW::Mechanize->new(); $mech->get("http://dspace.mit.edu/handle/1721.1/53720");
If you want to make that variable, maybe you want to pass the starting link from the command line? It will then be available via @ARGV:
my $mech = WWW::Mechanize->new(); warn "Fetching $ARGV[0]\n"; $mech->get($ARGV[0]);
Call it as
perl -w listanand.pl http://google.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Crawling Relative Links from Webpages
by listanand (Sexton) on May 08, 2010 at 15:32 UTC | |
by Your Mother (Archbishop) on May 08, 2010 at 17:04 UTC | |
by listanand (Sexton) on May 09, 2010 at 01:12 UTC |