#! perl # # convert tagpacker html export to a netscape html compatible format to make it importable in linkwarden # the script is pretty sloppy, it will likely break for some lines # # alexlehm/at/gmail.com # # https://wiki.creativecommons.org/wiki/CC0 # print qq[ Bookmarks

Bookmarks Menu

]; print qq[


Tagpacker bookmarks

]; while(<>) { chop; if(m@

()@i) { $msg=$1; if($msg=~m@([^<]+)@i) { $link=$1; $added=$2; $tags=$3; $desc=$4; print qq[
$desc ]; } else { warn "failed to match line\n"; } } } print qq[

];