DMT bookmarks-sqlite

These scripts:


The problem

Exporting the old Firefox-hmtl-bookmarks as webpage (of my taste) was an easy job.

But the task was getting harder with bookmarks stored in a sqlite-database (places.sqlite).


bookmarks-sqlite: Files

check-running-gui.sh

The bash-shellscript check-running-gui.sh is called by bookmarks-export.sh.
This allows to distinguish the kind of environment: graphical userinterface (GUI) or command line (shell).

bookmarks-export.sh

The bash-shellscript bookmarks-export.sh checks the calling environment and executes the main script (with some parameters).

These are the parameters:

bookmarks_sqlite.php

bookmarks_sqlite.php is a wrapper with some settings and call of the programm routines.

bookmarks_sqlite_functions.php

bookmarks_sqlite_functions.php contains the needed php-functions.
Of course the information in the paragraph REPLACEMENTS should be adapted to your template-webpage.


Tips

While testing the script should be called via command line.
This will show all output (incl. errors) of all components.

Before first trials i recommend making a safety backup of a existing output-target-file.

bookmarks_sqlite.php knows some constants for omitting bookmark-folders not to be exported:

The processed bookmarks are temporarily stored in a sqlite-database, where they can easily be inspected.


Download