Skip to content

Instantly share code, notes, and snippets.

@KTamas
Created October 28, 2012 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KTamas/d2b82556b4c9bc5baddd to your computer and use it in GitHub Desktop.
Save KTamas/d2b82556b4c9bc5baddd to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
subs = Nokogiri.XML(open('google-reader-subscriptions.xml'))
File.open('subscription_urls.txt', 'w') do |f|
subs.css('body outline').each do |sub|
url = sub.attr('xmlUrl')
f.write("#{url}\n") if url
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment