Catalog npm
PACKAGE EXPLORERView in registry

9gag.js

npm

[![npm](https://img.shields.io/npm/v/9gag.js.svg)]() [!["Monthly Download"](https://img.shields.io/npm/dm/9gag.js.svg)](https://npmjs.org/package/9gag.js) [![MIT license](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/ShaunLWM/9

9gag9gag-api9gag-crawlerninegag
Versions collected4
Direct dependencies1From release 0.0.3-alpha1
Last observed20 Oct, 21:37 UTC

README

Current package documentation

9GAG.js

npm "Monthly Download" MIT license

The simplest 9Gag API you've ever met.

Installation

node install 9gag.js
yarn add 9gag.js

Usage

Look in example.js for more information

const NineGag = require("9gag.js")
(async () => {
    // Fetch the first page of the hot section
    let hot = await NineGag.getType({ type: "hot" });
    console.log(hot["posts"]);
})();

Methods

getType({ type = "hot", cursor = "", simplified = false })

Returns { posts: [...], cursor: "..." }

  • Returns an object with an array of posts and a cursor. type can be "hot", "trending" or "fresh", cursor value is found in the cursor value of the returned results. simplified = true returns only necessary values.

getComments({ id = "", orderKey = "", simplified = false })

Returns [...]

  • Returns an array of comments. id is the post unique id. orderKey allows pagination where the value can be found in the orderKey of each comment result. simplified = true returns only necessary values.

License

MIT - Shaun (2019)

Downloads & popularity

Awaiting observations

No metric observations yet

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

Versions 4

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.3-alpha1Registry latest17 May 20191
0.0.311 May 20191
0.0.211 May 20191
0.0.110 May 20191

Package advisories

0
No matching advisories collected

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

Repository

PENDING
shaunlwm/9gag.js

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:ef1a3000388a01b8324ef0667005e6a75d1c7e8032d09489a454c3e5128946c6