Write a script/tool to convert WebPositive bookmarks to HTML for QupZilla
completed by: Markus Himmel (TwoFx)
mentors: Sergei Reznikov, Kacper Kasper, Adrien Destugues - PulkoMandy, Dario, Gerasim Troeglazov
The Qt browser QupZilla (available through HaikuDepot) is becoming a nice alternative where WebPositive is still lacking. It would be nice to have one's WebPositive bookmarks available in QupZilla. Luckily, QupZilla is able to import bookmarks in various formats (Mozilla, Chrome, Opera and HTML).
Your task is to create a script or tool in any language (bash, python, C...etc.) to convert WebPositive bookmarks in any format that QupZilla is able to import.
Web+ bookmarks have their data in attributes, as "listattr" shows:
Type Size Name
----------------------------------------------------------
Text 67 "META:url"
Text 16 "META:title"
Text 6 "META:keyw"
Mini Icon 256 "BEOS:M:STD_ICON"
Icon 1024 "BEOS:L:STD_ICON"
You can get to the contents with "catattr".
For starters, only the META:url, title, keyw attributes need to be converted to a QupZilla-importable file. You should respect the folder hierarchy though, i.e. Web+ bookmarks in a subfolder in ~/config/settings/WebPositive/Bookmarks/ should come into a similarly named subfolder in the QupZilla bookmarks.