Socket
Book a DemoInstallSign in
Socket

feed_searcher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feed_searcher

0.0.6
bundlerRubygems
Version published
Maintainers
1
Created
Source

FeedSearcher

Search RSS feed URLs from the given URL.

Build Status

Installation

$ gem install feed_searcher

Usage

require "feed_searcher"

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

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

Internal

Let me explain how FeedSearcher works along its execution sequence.

  • Fetches the HTML source of the given URL
  • Finds link elements (represented as XPath format)
  • Extracts URLs from the elements via its href attribute
  • Includes the given URL if its resource itself is a feed
  • Converts from relative path to absolute 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']

FAQs

Package last updated on 20 Mar 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.