This package has been deprecated
Author message:
this package has been deprecated
9gag-scraper
1.0.1 • Public • Published 9gag-scraper
Scrape data from 9GAG website
Installation
npm install 9gag-scraper --save
Usage
var gagScraper = require('9gag-scraper')
Scrape data from a 9GAG section
new gagScraper("trending").getGags(function (error, data) {
console.log(data.count);
console.log(data.gags);
console.log(data.gags[0].id);
console.log(data.gags[0].url);
console.log(data.gags[0].title);
console.log(data.gags[0].image);
});
new gagScraper("fresh").getGags(function (error, data) {
});
new gagScraper("meme").getGags(function (error, data) {
});
NSFW section scraping won't work as it requires users to login to view the content.
To get a random post
new gagScraper().getRandom(function (error, data) {
console.log(data.id);
console.log(data.url);
console.log(data.title);
console.log(data.image);
});
new gagScraper("random").getGags(function (error, data) {
});
Tests
npm test
Versions
Current Tags
- VersionDownloads (Last 7 Days)
Version History
- VersionDownloads (Last 7 Days)
Package Sidebar
Install
Weekly Downloads