Netscape::Bookmarks 1.94
Sponsored Links
Netscape::Bookmarks 1.94 Ranking & Summary
File size:
0.023 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
952
Date added:
2007-03-24
Publisher:
brian d foy
Netscape::Bookmarks 1.94 description
Netscape::Bookmarks is a Perl module to parse, manipulate, or create Netscape Bookmarks files.
SYNOPSIS
use Netscape::Bookmarks;
# parse an existing file
my $bookmarks = Netscape::Bookmarks->new( $bookmarks_file );
# -- OR --
# start a new Bookmarks structure
my $bookmarks = Netscape::Bookmarks->new;
# print a Netscape compatible file
print $bookmarks->as_string;
[ Note: I wrote this a long time ago. Although this should still work with "Netscape" browsers, Mozilla browsers do the same thing. When the docs say "Netscape", I mean either branch of browsers. ]
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 bookmarks file programmatically. One can parse an existing bookmarks file, manipulate the information, and write it as a bookmarks file again. Furthermore, one can skip the parsing step to create a new bookmarks file and write it in the proper format to be used by a Netscape browser.
The Bookmarks module simply parses the bookmarks file passed to it as the only argument to the constructor:
my $bookmarks = Netscape::Bookmarks->new( $bookmarks_file );
The returned object is a Netscape::Bookmarks::Category object, since the bookmark file is simply a collection of categories that contain any of the components listed above. The top level (i.e. root) category is treated specially and defines the title of the bookmarks file.
HTML::Parser is used behind the scenes to build the data structure (a simple list of lists (of lists ...)). Netscape::Bookmarks::Category, Netscape::Bookmarks::Link, Netscape::Bookmarks::Alias, or Netscape::Bookmarks::Separator objects can be stored in a Netscape::Bookmarks::Category object. Netscape::Bookmarks::Alias objects are treated as references to Netscape::Bookmarks::Link objects, so changes to one affect the other.
Methods for manipulating this object are in the Netscape::Bookmarks::Category module. Methods for dealing with the objects contained in a Netscape::Bookmarks::Category object are in their appropriate modules.
new( [filename] )
The constructor takes a filename as its single (optional) argument. If you do not give new an argument, an empty Netscape::Bookmarks::Category object is returned so that you can start to build up your new Bookmarks file. If the file that you name does not exist, undef is returned in scalar context and an empty list is returned in list context. If the file does exist it is parsed with HTML::Parser with the internal parser subclass defined in the same package as new. If the parsing finishes without error a Netscape::Bookmarks::Category object is returned.
parse_string
Method for HTML::Parser subclass method
start
Method for HTML::Parser subclass method
text
Method for HTML::Parser subclass method
end
Method for HTML::Parser subclass method
my_init
Method for HTML::Parser subclass method
SYNOPSIS
use Netscape::Bookmarks;
# parse an existing file
my $bookmarks = Netscape::Bookmarks->new( $bookmarks_file );
# -- OR --
# start a new Bookmarks structure
my $bookmarks = Netscape::Bookmarks->new;
# print a Netscape compatible file
print $bookmarks->as_string;
[ Note: I wrote this a long time ago. Although this should still work with "Netscape" browsers, Mozilla browsers do the same thing. When the docs say "Netscape", I mean either branch of browsers. ]
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 bookmarks file programmatically. One can parse an existing bookmarks file, manipulate the information, and write it as a bookmarks file again. Furthermore, one can skip the parsing step to create a new bookmarks file and write it in the proper format to be used by a Netscape browser.
The Bookmarks module simply parses the bookmarks file passed to it as the only argument to the constructor:
my $bookmarks = Netscape::Bookmarks->new( $bookmarks_file );
The returned object is a Netscape::Bookmarks::Category object, since the bookmark file is simply a collection of categories that contain any of the components listed above. The top level (i.e. root) category is treated specially and defines the title of the bookmarks file.
HTML::Parser is used behind the scenes to build the data structure (a simple list of lists (of lists ...)). Netscape::Bookmarks::Category, Netscape::Bookmarks::Link, Netscape::Bookmarks::Alias, or Netscape::Bookmarks::Separator objects can be stored in a Netscape::Bookmarks::Category object. Netscape::Bookmarks::Alias objects are treated as references to Netscape::Bookmarks::Link objects, so changes to one affect the other.
Methods for manipulating this object are in the Netscape::Bookmarks::Category module. Methods for dealing with the objects contained in a Netscape::Bookmarks::Category object are in their appropriate modules.
new( [filename] )
The constructor takes a filename as its single (optional) argument. If you do not give new an argument, an empty Netscape::Bookmarks::Category object is returned so that you can start to build up your new Bookmarks file. If the file that you name does not exist, undef is returned in scalar context and an empty list is returned in list context. If the file does exist it is parsed with HTML::Parser with the internal parser subclass defined in the same package as new. If the parsing finishes without error a Netscape::Bookmarks::Category object is returned.
parse_string
Method for HTML::Parser subclass method
start
Method for HTML::Parser subclass method
text
Method for HTML::Parser subclass method
end
Method for HTML::Parser subclass method
my_init
Method for HTML::Parser subclass method
Netscape::Bookmarks 1.94 Screenshot
Netscape::Bookmarks 1.94 Keywords
HTML
Netscape Bookmarks
Bookmarks 1.94
netscape bookmarks files
Perl module
bookmarks
file
method
netscape
new
object
Netscape::Bookmarks
NetscapeBookmarks
Netscape::Bookmarks 1.94
Libraries
Programming
Bookmark Netscape::Bookmarks 1.94
Netscape::Bookmarks 1.94 Copyright
WareSeeker periodically updates pricing and software information of Netscape::Bookmarks 1.94 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Netscape::Bookmarks 1.94 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
bookmarks for books
netscape search
methodist hospital houston
netscape browser
yahoo bookmarks
scientific method
netscape bookmarks file location
methodist medical center
netscape connect
bookmarks to make
html code
methodist hospital
bookmarks magazine
file extension pdf
netscape mail
netscape men
bookmarks for children
united methodist church
Related Software
online-bookmarks is a bookmarks management system to store bookmarks, favorites, and links on the WWW. Free Download
Netscape::Cache is a Perl object class for accessing Netscape cache files. Free Download
OlBookmarks project lets you access, manage, organize, and share your personal bookmarks through a web-based interface. Free Download
Netscape::History is a Perl object class for accessing Netscape history database. Free Download
etPacket::IGMP is a Perl module to assemble and disassemble IGMP (Internet Group Mangement Protocol) packets. Free Download
NetPacket::ICMP is a Perl module to assemble and disassemble ICMP (Internet Control Message Protocol) packets. Free Download
Net::GPSD is a Perl module that provides an object client interface to the gpsd server daemon. Free Download
HTML::CalendarMonthSimple is a Perl Module for Generating HTML Calendars. Free Download
Latest Software
Popular Software
Favourite Software