Catalog npm
Back to packageRELEASE DETAILS

1.0.1

npm

9gag-scraper

Scrape data/images from 9GAG website

9gag9gag-scraperjokesmeme-scrapermemesscraper
Published6 Sept 2015
Direct dependencies4
Transitive dependenciesNot calculated

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.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^3.10.1runtime
x-ray
Environment
{
  "local_name": "x-ray",
  "alias": false,
  "peer_metadata": null
}
^2.0.2runtime
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^3.2.0development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^2.3.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "1077c183b8036c4979842b07a7cc59ccef63054b",
  "tarball": "https://registry.npmjs.org/9gag-scraper/-/9gag-scraper-1.0.1.tgz",
  "integrity": "sha512-vpiM0Z0I1eVKsoExjiGEwLQ07fDAEsJ0PXc6WXyG8q4ahj2GtC9Mj+3WeXJEh8dAw9EVWFedh0UMxYkCI9UmFw==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIBly6FICcDxZenP1YfX7VDLrikQshhhpE5yTpzVPJp9XAiBMH7sBd90KfQrCzEXKmiOsQ7SPIt5CBXYa78imzCdh2Q=="
    }
  ]
}

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_version:ac89ce4e4fb1f2664e2721ad498cc7ca72ed3c32b229226c80253028f6cc5e4e

Other collected versions

1.0.05 SeptView all collected versions →