Revision as of 16:58, 27 January 2007 by Tstaerk (Talk | contribs)

Jump to: navigation, search

Here's how I draw a mindmap of this wiki:

Download all pages

duffman:~/developernew # cat ../wikimap/
require HTML::LinkExtor;
use LWP::Simple; 

$p = HTML::LinkExtor->new(\&parse, "");
sub parse {
    my($tag, %links) = @_;
    my ($att, $url) = @{[%links]};
    print "$url\n";
my $content = get(""); #Get web page in content 
die "get failed" if (!defined $content);
my $parser = HTML::LinkExtor->new(); #create LinkExtor object with no callbacks
$p->parse($content); #parse content

duffman:~/developernew #

../wikimap/ | grep "^/" | grep -v ":" | grep -v "?" | while read a; do wget "$a"; done

Content is available under Creative Commons License SA 4.0 unless otherwise noted.