Socket
Book a DemoInstallSign in
Socket

rfd-scrapper

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rfd-scrapper

A shameless redflagdeals.com scrapper

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

rfd-scrapper

A shameless redflagdeals.com scrapper

Rfd-scrapper fetches data in the following format:

{
  "title": "Title",
  "url": "http://http://forums.redflagdeals.com/deal-url",
  "created_at": "Sep 5th, 2016 4:16 pm",
  "updated_at": "Sep 5th, 2016 4:16 pm",
  "rating": "+5"
}

All entries are sorted by post creation date.

Installation

$ npm install rfd-scrapper --save

Usage

const rfdScrapper = require('rfd-scrapper');

rfdScrapper({ limit: 3, days: 7, direction: 'd' })
  .then(data => console.log(data))

API

rfdScrapper([options])

Fetches posts from http://forums.redflagdeals.com

Params

  • Object options: An object containing the following fields:
    • days (Number): Possible values: 0 - all, 1 - one day, 7 - week, 30 - month
    • limit (Number): Number of pages to scrap
    • direction (String): Sorting direction: must be either a - ascending or d - descending

Keywords

scrapper

FAQs

Package last updated on 06 Sep 2016

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