operahotlist2html is a Perl script that converts Opera bookmarks files (called "Hotlist") to HTML 4.01. It doesn't process the creation or last visited dates to help ensure privacy of the users. The program was originally created for Opera for Linux, but works with Opera for Windows hotlists as well.
- Usage
- operahotlist2html [options] [ < INPUT.adr] [ > OUTPUT.html]
- Options
- -h, --help Print this help message
-q, --quiet Supress warning messages
-v, --version Print version
--debug Print debugging output to STDERR -i, --input=PATH Use this file as input instead of STDIN -o, --output=PATH Output to this file instead of STDOUT -d, --header=STRING Heading at top of page -t, --title=STRING Title in HTML header -s, --style=STRING Stylesheet for output HTML
--google-analytics Include Google Analytics script --descr-sep=STRING HTML to separate descript from title -x, --exclude-folder=STRING Regular expression to exclude folders
e.g. "\A(News and Weather|Sports)\Z" --no-favicons Don't include favicons in output. --favicon-size=STRING force height, width of favicons. -m, --mozilla Generate Mozilla/Netscape bookmark file
--include-dates In Mozilla output, include bookmark dates --unsort-folder-list Print folder list unsorted --include-extra-folders Include the 'Find Results' and 'Trash' folders -r, --hr=STRING HTML for a separator instead of <hr> -n, --nodateontop Print datestamp only at bottom
By default, it reads from standard in and writes to standard out. So you could do for instance:
$ operahotlist2html < ~/.opera/opera6.adr > htmlfile.html
Or equivalently using the command line options:
$ operahotlist2html --input=$HOME/.opera/opera6.adr \
--output=htmlfile.html
Here is a fancier example:
$ operahotlist2html --title='Hotlist for somebody' \
--header='<h1>Hotlist for <a href="index.html">this user</a></h1>' \
--style='someCSSfile.css' \
--hr='<hr width="50%">' \
--descr-sep="<br/> " \
--exclude-folder="\APrivate\Z"
--input=$HOME/.opera/opera6.adr \
--output=$HOME/html/opera_hotlist.html
The current version is available at:
http://www.alanhoyle.com/operahotlist2html/ http://sourceforge.net/projects/ophotlist2html/ http://freshmeat.net/projects/ophotlist2html/
Note that non-alpha-numeric characters in folder names may break HTML compliance in certain circumstances.
Alan Hoyle <alan@alanhoyle.com>
$Id: README,v 1.10 2003/08/29 18:41:41 alanh Exp alanh $
This code is based on hotlist2xbel written by Haakon Nilsen <haakon@nilsen.com>. http://sips.midian.net/hotlist2xbel/
