https://github.com/nukeop/slashdot
slashdot scraper
https://github.com/nukeop/slashdot
Last synced: about 1 year ago
JSON representation
slashdot scraper
- Host: GitHub
- URL: https://github.com/nukeop/slashdot
- Owner: nukeop
- License: agpl-3.0
- Created: 2018-01-14T23:18:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-15T12:17:34.000Z (over 8 years ago)
- Last Synced: 2025-05-30T01:38:35.599Z (about 1 year ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
});
```