Skip to content

Instantly share code, notes, and snippets.

@amontalenti
Last active July 24, 2016 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amontalenti/5cf4620b3a624a594a625727e5381c0d to your computer and use it in GitHub Desktop.
Save amontalenti/5cf4620b3a624a594a625727e5381c0d to your computer and use it in GitHub Desktop.
# 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