View Single Post
Old 12-18-2012, 12:09 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Cool Way to Export Chrome Bookmarks (medium to advanced users) (15 pics beware)

I noticed with Google Chrome, the only way to export your bookmarks is into an ugly formatted .html file.

like so.



I ended up parsing this with sed like so

Code:
sed '/<DT><A\|<DT><H3/!d;s/<DT>//;/Bookmarks bar/d;s/ ADD_DATE=\".*\"//g;s/^[ \t]*//;s/<A HREF/<a href/;s/[<H3|<A]/\L&/g' bookmarks.html


Then I realized Google Chrome stores its data as a SqlLite Database, so You can parse it easily, here are the screenshots of me doing it so you can replicate it.

Im using the desktop app navicat which lets you connect to different types of databases.



























Hope this helps someone ;)
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote