Created
September 7, 2008 04:37
-
-
Save n3bulous/9230 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 'rubygems' | |
require 'net/http' | |
require 'hpricot' | |
require 'feed-normalizer' | |
require 'simple-rss' | |
require 'open-uri' | |
require 'sqlite3' | |
#require 'ActiveRecord' | |
#require File.dirname(__FILE__)+'/models/feed' | |
#require File.dirname(__FILE__)+'/controllers/feed-controller' | |
#ActiveRecord::Base.establish_connection( | |
# :adapter => 'sqlite3', | |
# :database => 'db/feedsieve.sqlite3', | |
# :timeout => 5000 | |
#) | |
test_feed = 'http://feeds.feedburner.com/Idiosyncranomicon' | |
#test_feed = 'http://www.janinepineo.com/feeds/posts/default?alt=rss' | |
#test_feed = '' | |
feed = FeedNormalizer::FeedNormalizer.parse open(test_feed), :force_parser => SimpleRssParser | |
puts feed.to_yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment