Codebox Software

Copy bookmarks between Instapaper, Readability, Pocket, Pinboard, Delicious etc

Published:

Here's a small Python library to copy bookmarks between a number of online bookmarking/reading list services. The library supports Instapaper, Readability, Pocket (formerly ReadItLater), Pinboard, Delicious, Diigo, GitHub*, StackOverflow* and Twitter* (* export only).

To use the library you will need to populate your copy of the config.txt file with the details of your accounts on the services that you are going to use. In the case of Readability, Pocket, Instapaper and Diigo you will also need to apply for an API key:

In addition, you will need to have the oauth2 Python library installed on your system.

Here's an example showing how to copy all your bookmarks from one service to another:

Copy from Pocket to Readability

# Copy all bookmarks from Pocket to Readability
pocket = buildPocket()
readability = buildReadability()

for b in pocket.getBookmarks():
    readability.addBookmark(b)

You can also use the library to export a list of your bookmarks for use as a backup:

Export all Delicious bookmarks

# Print out all bookmarks from Delicious
delicious = buildDelicious()

for b in delicious.getBookmarks():
    print b['title'] + ': ' + b['url']

This library is open source and available on GitHub.