Create a gist now

Instantly share code, notes, and snippets.

@KTamas /extract.rb Secret
Created Oct 28, 2012

What would you like to do?
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
subs = Nokogiri.XML(open('google-reader-subscriptions.xml'))'subscription_urls.txt', 'w') do |f|
subs.css('body outline').each do |sub|
url = sub.attr('xmlUrl')
f.write("#{url}\n") if url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment