Skip to content

Instantly share code, notes, and snippets.

@mattb
Created June 3, 2009 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mattb/123232 to your computer and use it in GitHub Desktop.
Save mattb/123232 to your computer and use it in GitHub Desktop.
require 'open-uri' ; require 'rss/2.0' ; require 'cgi'
delicious_user='mattb'
instapaper_user='me@example.com'
instapaper_password='whatever'
RSS::Parser.parse(open('http://feeds.delicious.com/v2/rss/network/#{delicious_user}?count=15').read).items.each { |item| open("https://www.instapaper.com/api/add?username=#{instapaper_user}&password=#{instapaper_password}&url=#{CGI.escape(item.link)}&auto-title=1").read }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment