hfcorriez / node-find-rss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-find-rss Build StatusTest CoverageCode Climate

NPM

RSS/Atom feed URL Candidates finder

wrapper of htmlparser2

##install

using npm:

npm install find-rss

using package.json:

"find-rss": "*"

Simple To Use: HTTP Address

# CoffeeScript

finder  = require 'find-rss'
finder "http://nikezono.com",(error,response,body)->
  return console.error error if error
  console.log candidates

  # =>
  # [ { sitename: 'nikezono.com'
      rel: 'alternate',
      type: 'application/atom+xml',
      title: 'RSS',
      href: '/atom.xml',
      favicon: 'http://nikezono.com/favicon.ico',
      url: 'http://nikezono.com/atom.xml' } ]

Options

finder = require 'find-rss' finder.setOptions favicon:true # find favicon url(default:true) getDetail:false # get detail property in each atom/rss candidate(default:false)

About


Languages

Language:CoffeeScript 65.5%Language:JavaScript 34.5%