The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Netscape::Bookmarks - Process and manipulate Netscape bookmarks files

SYNOPSIS

  use Netscape::Bookmarks;
  @bookmarks = bookmarks_array($filename);
  @bookmarks = bookmarks_lol($filename);

DESCRIPTION

This module helps you process and manipulate Netscape bookmarks files.

bookmarks_array()

Returns a flat array of bookmark URLs.

bookmarks_lol()

Returns a list of lists of bookmarks, with the following elements in each of the arrayrefs:

  0     URL
  1     Name (the text name of the bookmark)
  2     Added date
  3     Last modified date
  4     Last visited date

BUGS

This module isn't very fast, but then I do have ~1300 bookmarks, which is probably excessive. Nevertheless, it's still easier to use this module and the bmgrep script to find bookmarks than to use Netscape's bookmarks interface.

I don't have any other versions of Netscape available to play with, so I only know that this works with my own copy which is v4.51 on Linux. Please let me know if you have any problems with other versions.

FUTURE DIRECTIONS

I intend to add a feature to get a decent tree-like representation of your folders. I also intend to provide ways to add, delete and otherwise manipulate bookmarks. This will probably be non-trivial, but that's life I guess.

AUTHOR

Kirrily 'Skud' Robert

Netizen Pty Ltd

skud@netizen.com.au

SEE ALSO

perl(1).