Skip to content

Instantly share code, notes, and snippets.

@fcicq
Created October 24, 2012 05:22
Show Gist options
  • Save fcicq/3944165 to your computer and use it in GitHub Desktop.
Save fcicq/3944165 to your computer and use it in GitHub Desktop.
readability to delicious (to import to pocket, http://getpocket.com/import/delicious )
# before using: rename your exported json as read.json
a = json.load(file('read.json'))
print '''<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<!-- This is an automatically generated file.
It will be read and overwritten.
Do Not Edit! -->
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>'''
for i in a: print '<dt><a href="' + i['article__url'] + '">' + i['article__title'] + '</a>'
print '</p></DL>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment