slashdot

1.1.0 • Public • Published

slashdot

slashdot scraper. Promise-based API.

Usage

Installation

$ npm install --save slashdot

List of methods:

  • getArticle(url)
const slashdot = require('slashdot');
 
slashdot.getArticle('https://entertainment.slashdot.org/story/18/01/14/2124225/japans-latest-sensation-is-a-cryptocurrency-pop-group')
.then(article => {
    console.log(article);
});
  • getComment(url)
const slashdot = require('slashdot');
 
slashdot.getComment('https://linux.slashdot.org/comments.pl?sid=11610579&cid=55929905')
.then(comment => {
    console.log(comment);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    3
  • 1.0.0
    0

Package Sidebar

Install

npm i slashdot

Weekly Downloads

3

Version

1.1.0

License

AGPL-3.0

Last publish

Collaborators

  • nukeop