GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Cool Way to Export Chrome Bookmarks (medium to advanced users) (15 pics beware) (https://gfy.com/showthread.php?t=1093332)

fris 12-18-2012 12:09 PM

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.

http://i.imgur.com/sFrrJ.jpg

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
http://i.imgur.com/xNv4M.jpg

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.

http://i.imgur.com/krtyGh.jpg

http://i.imgur.com/xCThKh.jpg

http://i.imgur.com/x2YNHh.jpg

http://i.imgur.com/JxEJih.jpg

http://i.imgur.com/wL75Yh.jpg

http://i.imgur.com/RAO8bh.jpg

http://i.imgur.com/3cpNm.jpg

http://i.imgur.com/vOHOl.jpg

http://i.imgur.com/Yj57Jh.jpg

http://i.imgur.com/jmk9Yh.jpg

http://i.imgur.com/bu9L9h.jpg

http://i.imgur.com/Papreh.jpg

http://i.imgur.com/Ov6Eoh.jpg

Hope this helps someone ;) :pimp

woj 12-18-2012 12:24 PM

kinda cool, but come on, if the process requires 15 steps and $500 software to do something as simple as "export bookmarks" = FAIL

I'll stick to regexping the html export... :)

fris 12-18-2012 12:41 PM

Quote:

Originally Posted by woj (Post 19377165)
kinda cool, but come on, if the process requires 15 steps and $500 software to do something as simple as "export bookmarks" = FAIL

I'll stick to regexping the html export... :)

ya i know ;) i was just doing it as a test ;)

Killswitch 12-18-2012 01:19 PM

Quote:

Originally Posted by woj (Post 19377165)
kinda cool, but come on, if the process requires 15 steps and $500 software to do something as simple as "export bookmarks" = FAIL

I'll stick to regexping the html export... :)

Bingo. :thumbsup

Rebel D 12-18-2012 01:40 PM

Your ICQ broken again??

Spunky 12-18-2012 02:01 PM

This coding stuff makes my brain hurt


All times are GMT -7. The time now is 03:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123