0.0
No commit activity in last 3 years
No release in over 3 years
FeedSearcher searches RSS feed URLs from the given URL.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 2.13.0

Runtime

>= 1.0.0
 Project Readme

FeedSearcher

Search RSS feed URLs from the given URL.

Installation

$ gem install feed_searcher

Usage

require "feed_searcher"
FeedSearcher.search("https://github.com/r7kamura/feed_searcher")
#=> ["https://github.com/r7kamura/feed_searcher/commits/master.atom"]

Internal

Let me explain how FeedSearcher works along its execution sequence.

  1. Fetches the HTML source of the given URL
  2. Finds link elements (represented as XPath format)
  3. Extracts URLs from the elements via its href attribute
  4. Converts to absolute path if it is relative path

FeedSearcher finds link elements matcing following XPath patterns.

  • //link[@rel='alternate'][@type='application/atom+xml']
  • //link[@rel='alternate'][@type='application/rdf+xml']
  • //link[@rel='alternate'][@type='application/rss+xml']