Read Firefox 3 bookmarks

杀马特。学长 韩版系。学妹 提交于 2020-01-03 11:33:06

问题


Firefox 3 stores the bookmarks in a sqlite database. There are several hacked sqlite java libraries available. Is there a way to hack the sqlite database in java(not using libraries) to read bookmarks reliably? Does someone know how the sqlite DB is stored and access programmatically (from java)?


回答1:


You need the SQLite JDBC driver (this page explains how to run queries on a SQLite database using that driver from within Java).




回答2:


I don't know why you need NOT to use a JDBC driver, but there's another possible "solution" depending on your software requirements. In FF3, type in the address bar about:config

Alter the value of property: browser.bookmarks.autoExportHTML to true.

This will export your bookmarks in an HTML whenever you close FF. You can then read the HTML. It may or may not solve your problem....



来源:https://stackoverflow.com/questions/81132/read-firefox-3-bookmarks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!