Created
October 24, 2012 05:22
-
-
Save fcicq/3944165 to your computer and use it in GitHub Desktop.
readability to delicious (to import to pocket, http://getpocket.com/import/delicious )
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
# 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