FeedHound tracks down an RSS feed for a given domain.
First it checks for RSS links in the header. If there aren't any, its uses conventional hints from a tags (blog.domain.com and domain.com/blog) and follows links to find the blog. Finally, it opens the feed url and confirm that its in a format we (Feedzirra more specifically) can read.
Add this line to your application's Gemfile:
gem 'feed_hound'
And then execute:
$ bundle
Or install it yourself as:
$ gem install feed_hound
> FeedHound.hunt(domain: "listrak.com", debug_level: 1)
DEBUG hunt depth 0: http://listrak.com
DEBUG - redirect to http://www.listrak.com/
DEBUG hunt depth 1: http://www.listrak.com/
DEBUG - blog related links: ["http://blog.listrak.com/"]
DEBUG - blog related links: ["http://blog.listrak.com/"]
DEBUG hunt depth 2: http://blog.listrak.com/
DEBUG - found reference to RSS in header
DEBUG hunt depth 3: http://blog.listrak.com/rss
DEBUG - found RSS
=> "http://blog.listrak.com/rss"- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request