Created
June 3, 2009 20:40
-
-
Save mattb/123232 to your computer and use it in GitHub Desktop.
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
require 'open-uri' ; require 'rss/2.0' ; require 'cgi' | |
delicious_user='mattb' | |
instapaper_user='[email protected]' | |
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