No description, website, or topics provided.
CoffeeScript HTML
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
.npmignore
.travis.yml
Gruntfile.coffee
README.md
package.json

README.md

node-find-rss Build Status

NPM

A module for finding RSS/ATOM feeds, from HTML or URL.

##install

$ npm install find-rss

Simple To Use: HTTP Address

# CoffeeScript
finder  = require 'find-rss'
finder "http://nikezono.com"
.then (candidates)->
  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' } ]

# CoffeeScript(callback)

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)
  maxResponseSize:1000*1000*10 # set http response size limit, e.g. 10MB(dafault:null)