Entries Tagged 'scripts' ↓

Bookmarking your Google Shared Items on Delicious and Ma.gnolia

I’ve been using delicious and Google Reader since they came out. When I’m reading and article on a site that’s worth saving, automatically use my delicious Firefox extension and bookmark that page. The same with Google Reader, if there an article I like among my feeds, automatically mark it as shared items (I use stars to keep unread articles).

The problem presents when I want to search saved articles, i don’t have a centralized place to keep my favorites since they’re distributed between delicious and Google Reader.

Know I said: “Stop! It’s time to keep my bookmarks in sync!” So I came up with a script to automatically post my Google Shared Items to my delicious account.

Requirements

Install this gems

  • feed-normalizer: It will be used to read and parse the shared items atom feed.
  • json: This will parse the JSON returned by the Yahoo Term Extraction API. If you’re on Windows install json_pure.
  • mirrored: It’s a gem to interact with delicious and ma.gnolia bookmark sites. So yes, this script will also work if you’re using magnolia to keep your bookmarks. Currently this gem does not allow to check if an invalid authentication has ocurred, but i’ve already cloned it on github to provide a patch for this problem.

The script

The script it’s pretty straightforward, it will fetch your google reader items, iterate through each of them and post them to delicious if they’re not already there. As a plus, it will use the Yahoo Term Extraction API to get a list of tags for your bookmark.