1.0.2 • Published 7 years ago

the-crawler-rss v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

the-crawler-rss

Build Status npm Version JS Standard

Crawler for RSS

Installation

$ npm install the-crawler-rss --save

Usage

'use strict'

const theDB = require('the-db')
const { TheRSSCrwl } = require('the-crawler-rss')

async function tryExample () {
  const db = theDB({ /* ... */ })

  {
    let crawler = new TheRSSCrwl({
      name: 'myRSSCrwl',
      resources: {
        Site: db.resource('RSSSite'),
        Feed: db.resource('RSSFeed')
      }
    })

    await crawler.run({
      url: 'http://www.moguravr.com/feed/'
    })
  }
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links