Advertisement
dHeinemann

archive.pl

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