An open API service indexing awesome lists of open source software.

https://github.com/nukeop/slashdot

slashdot scraper
https://github.com/nukeop/slashdot

Last synced: about 1 year ago
JSON representation

slashdot scraper

Awesome Lists containing this project

README

          

# slashdot
slashdot scraper. Promise-based API.

# Usage

### Installation
```bash
$ npm install --save slashdot
```

### List of methods:

- getArticle(url)
```javascript
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)
```javascript
const slashdot = require('slashdot');

slashdot.getComment('https://linux.slashdot.org/comments.pl?sid=11610579&cid=55929905')
.then(comment => {
console.log(comment);
});
```