Catalog npm
PACKAGE EXPLORERView in registry

9gag-scraper

npm

Scrape data/images from 9GAG website

9gag9gag-scraperjokesmeme-scrapermemesscraper
Versions collected2
Direct dependencies4From release 1.0.1
Last observed20 Oct, 21:37 UTC

README

Current package documentation

9gag-scraper

Build Status

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); // Total posts returned
    console.log(data.gags); // posts object ( array of posts )

    console.log(data.gags[0].id); // 9GAG post ID
    console.log(data.gags[0].url); // 9GAG post URL
    console.log(data.gags[0].title); // 9GAG post title
    console.log(data.gags[0].image); // 9GAG post image link

});

// You can also pass in any valid section you want to scrape from ( Defaults to 'hot' )
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); // 9GAG post ID
    console.log(data.url); // 9GAG post URL
    console.log(data.title); // 9GAG post title
    console.log(data.image); // 9GAG post image link
});

new gagScraper("random").getGags(function (error, data) {
});

Tests

npm test

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 2

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.1Registry latest6 Sept 20154
1.0.05 Sept 20152

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
shylesh107/9gag-scraper

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:37 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6130642033e126b18811774327a78cc908a1b19b000aafd91dd7b22b4cd1dd33