sqlite3 places.sqlite "select '<a href=''' || url || '''>' || moz_bookmarks.title || '</a><br/>' as ahref from moz_bookmarks left join moz_places on fk=moz_places.id where url<>'' and moz_bookmarks.title<>''" > t1.html
<a href='http://www.wunderground.com/hurricane/'>Tropical weather</a><br/>
<a href='http://www.dmi.dk/vejr/maalinger/radar-nedboer/'>DMI, Radar</a><br/>
<a href='http://www.skyandtelescope.com/observing/objects/planets/3304091.html?page=1&c=y'>Transit Times of Jupiter's Great Red Spot - Planets - SkyandTelescope.com</a><br/>
<a href='https://www.quora.com/What-is-the-most-misspelt-word-in-the-English-language'>(951/25) What is the most misspelt word in the English language? - Quora</a><br/>
<a href='http://www.eevblog.com/2015/06/16/eevblog-754-altium-circuit-maker-first-impressions/'>EEVblog #754 - Altium Circuit Maker First Impressions | EEVblog - The Electronics Engineering Video Blog</a><br/>
<a href='https://www.arduino.cc/en/Main/ArduinoBoardUno'>Arduino - ArduinoBoardUno</a><br/>
dalem@QnD:~/Downloads$ sqlite3 places.sqlite 'select "<a href={" || url || "}>" || moz_bookmarks.title || "</a><br/>" as ahref from moz_bookmarks left join moz_places on fk=moz_places.id where url<>"" and moz_bookmarks.title<>""' > t1.html
4条答案
按热度按时间vnzz0bqm1#
一个实际工作的查询(在Windows上,就像这个问题一样)是:
这假定:
sqlite3
)已安装,并位于路径(环境变量PATH
)中生成的HTML示例:
注意事项
kgqe7b3p2#
书签保存在文件
places.sqlite
中,而不是urlclassifier中。您可以尝试将当前安装中的文件替换为该文件。请确保Firefox已关闭。如果不起作用:您可能需要安装Firefox插件“SQLite Manager”,然后使用该插件(使用Alt键打开Firefox中的插件菜单)从旧安装中打开文件places.sqlite。右键单击左手的 Tables -〉moz_bookmarke,然后单击“export table”
将表导出为XML或SQL,然后从当前安装中打开file places.sqlite,然后单击 Database -〉Import Table 并以与导出相同的方式导入它。
mjqavswn3#
您也可以替换Firefox配置文件夹中的
places.sqlite
文件,然后,由于Firefox可能无法检索数据库,您可以打开另一个Web浏览器(Chrome,Edge等)并从这个新浏览器导入Firefox书签(大多数浏览器都可以导入Firefox书签)。最后,您可以从Firefox再次从这个第三方Web浏览器导入书签。ffvjumwh4#
一个快速和肮脏的解决方案是: