My favorites | Sign in
Project Home Downloads Wiki Issues
Project Information
Members
Featured
Downloads
Links

Sync Google Reader shared rss items conveniently with your Delicious bookmarks library. Scans shared item notes for tags.

Configuration

In order for the script to function you will need to insert your Delicious Bookmarks username and password between the "" on lines 26 and 27 respectively.

You will also need to insert your unique Google Reader ID (a string of 20 digits) into line 43 of the script:

$googleReaderURI = "http://www.google.com/reader/public/atom/user/20-digit-ID-goes-here/state/com.google/broadcast";

If you are unsure how to find your 20-digit ID:

Go to: Google Reader

Click "Sharing settings" below your friends list.

You should see your 20-digit ID under the heading "Choose a custom URL":

http://www.google.com/reader/shared/20-digit-ID

How To Add Tags

Note: If you do not use this function (or wish not to) I recommend using the original script by Rick Mans available here as it attempts to detect recommended tags. Otherwise, each shared item without a note and/or the TAGS syntax mentioned above will be left undefined in Delicious.

Add tags to your bookmarks by using the "Share with note" option in Google Reader. Use the following syntax in your note:

TAGS(tag1 tag2 tag3)

Wherein tag1 tag2 tag3 and so on are replaced with your tags, such as cars school funny etc.

Sharing Bookmarks

Sharing bookmarks is also possible using this method, simply use the tag for:username (replacing "username" with the Delicious username of the person you would like to share the bookmark with)

What If I Want To Sync Older Items?

To sync older items simply add ?n=100 to the end of the Google Reader URI on line 43 of the script, replacing "100" with the number of previously shared items you wish to retrieve.

Note: Previously shared items will in all likelihood not have the TAGS(tag1 tag2 tag3) pseudofunction syntax and will therefor be synced without any tags to Delicious.

Ubuntu Linux Users

Visit UbuntuInstructions for usage instructions


Special thanks to jas Osborne for helping me.

This script depends on the following functions:

  • cURL
  • SimpleXML

Based on a script by Rick Mans: http://code.google.com/p/gr2delicious/

This script is available under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Powered by Google Project Hosting