Created
May 2, 2014 21:11
-
-
Save nabucosound/1569c076b5ef152dc1dd to your computer and use it in GitHub Desktop.
Parse google chrome bookmarks json file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
with open ("/Users/nabuco/Library/Application Support/Google/Chrome/Default/Bookmarks") as f: | |
caca = json.load(f) | |
bookmarks = caca['roots']['other']['children'][0]['children'][1]['children'] | |
for obj in dookmarks: | |
print obj['url'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to convert the time (such as the
date_add
attribute next tourl
) to a UNIX timestamp?