Advertisement
dHeinemann

grab.pl

Mar 18th, 2011
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.40 KB | None | 0 0
  1. #!/usr/bin/perl
  2. #Simple Perl script to save me from having to memorise the parameters.
  3. #Grabs the pages specified and converts any links between them.
  4.  
  5. die("Usage: grab.pl \"URL(s)\" [wait]\n") unless ($ARGV[0]);
  6. my $waitTime = 1;
  7. $waitTime = $ARGV[1] if ($ARGV[1]);
  8.  
  9. system("wget --page-requisites --continue --convert-links --user-agent=\"\" -e robots=off --wait $waitTime $ARGV[0]");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement