Last active
July 24, 2016 18:16
-
-
Save amontalenti/5cf4620b3a624a594a625727e5381c0d to your computer and use it in GitHub Desktop.
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
# simple script converts my Google Chrome bookmarks for my "Dashes" | |
# folder into a Markdown list so I can share it on the Parse.ly wiki | |
import json | |
import os | |
POSITION = 8 | |
bookmarks = json.load(open("%s/.config/google-chrome/Default/Bookmarks" % os.environ["HOME"])) | |
dash_links = bookmarks["roots"]["bookmark_bar"]["children"][POSITION]["children"] | |
for link in dash_links: | |
print "- [%s](%s)" % (link["name"], link["url"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment