|
Netscape::Bookmarks::Link - manipulate, or create Netscape Bookmarks links |
Netscape::Bookmarks::Link - manipulate, or create Netscape Bookmarks links
use Netscape::Bookmarks::Bookmarks;
my $category = new Netscape::Bookmarks::Category { ... };
my $link = new Netscape::Bookmarks::Link {
TITLE => 'this is the title',
DESCRIPTION => 'this is the description',
HREF => 'http://www.perl.org',
ADD_DATE => 937862073,
LAST_VISIT => 937862073,
LAST_MODIFIED => 937862073,
ALIAS_ID => 4,
}
$category->add($link);
#print a Netscape compatible file print $link->as_string;
The Netscape bookmarks file has several basic components:
title
folders (henceforth called categories)
links
aliases
separators
On disk, Netscape browsers store this information in HTML. In the browser, it is displayed under the ``Bookmarks'' menu. The data can be manipulated through the browser interface.
This module allows one to manipulate the links in for a Netscape bookmarks file. A link has these attributes, only some of which may be present:
title
description
HREF (i.e. URL)
ADD_DATE
LAST_MODIFIED
LAST_VISIT
ALIAS_OF
ALIAS_ID
These are explained below.
HREF
ADD_DATE
LAST_MODIFIED
LAST_VISIT
ALIASID
ALIASOF
Add methods for manipulating attributes
This source is part of a SourceForge project which always has the latest sources in CVS, as well as all of the previous releases.
http://sourceforge.net/projects/nsbookmarks/
If, for some reason, I disappear from the world, one of the other members of the project can shepherd this module appropriately.
brian d foy, <bdfoy@cpan.org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
If you send me modifications or new features, I will do my best to incorporate them into future versions.
the Netscape::Bookmarks manpage
|
Netscape::Bookmarks::Link - manipulate, or create Netscape Bookmarks links |