rfd-scrapper
v1.0.1
Published
A shameless redflagdeals.com scrapper
Downloads
9
Readme
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
- monthlimit
(Number): Number of pages to scrapdirection
(String): Sorting direction: must be eithera
- ascending ord
- descending