Posted by u on 6/28/2003, 7:31 am, in reply to "READ>>>>>>>>>>>>>>>>>>>>>>>>>>" @msgnums=(); #DETERMINE NUMBER OF SECTIONS IN ARCHIVE $_ = get('http://www.network54.com/Hide/Forum/233031?it=' . $it); print "\n\nDOWNLOADING THREADS";
24.53.188.179
|i;
use LWP::Simple;
mkdir('archive') || die "ERROR: plz delete \"archive\" directory if it exists.\n";
$_ = get('http://www.network54.com/Hide/Forum/233031');
m|\d+\D+
$lastpage=$1;
print "\nRETRIEVING MESSAGE NUMBERS";
for $it (0 .. $lastpage) {
@tmp = m|thread\?forumid=233031&messageid=(\d\d+)\">|gi;
push @msgnums, [ @tmp ];
print '.';
}
for $it (0 .. $lastpage) {
mkdir("archive/$it");
print "\n" , $lastpage-$it+1 , " sections to go";
foreach $n ( @{$msgnums[$it]} ) {
$url='http://www.network54.com/Hide/Forum/thread?forumid=233031&messageid=' . $n;
$fname = 'archive/' . $it . '/' . $n . '.html';
mirror($url, $fname);
print '.';
}
}
Message Thread:
![]()
« Back to thread

Responses are not allowed!

Create your own free message board!