Catalog npm
Back to packageRELEASE DETAILS

0.0.3-alpha1

npm

9gag.js

[![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
Published17 May 2019
Direct dependencies1
Transitive dependenciesNot calculated

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.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
^2.5.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-rUmwB0/nnh3+Z7ArwhP7QeGRjWdVuQ6Xv6QowoiScJZRTnumqtlptDUZ3MtCCra3g6OS1RvQhhX6FeS2cIWb4w==",
  "shasum": "3814b0372a23f78818a47d4ec579505b32d42b19",
  "tarball": "https://registry.npmjs.org/9gag.js/-/9gag.js-0.0.3-alpha1.tgz",
  "fileCount": 6,
  "unpackedSize": 6765,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3k8KCRA9TVsSAnZWagAAKtcP/1QhXfKfh8x2nG/B1js+\nnXpEU0dgneK9NZTsM2l1uLwVxz+tl7FlHQXC0sLf5fM9LgbAIVElUh9V38sp\nSdorcBostlOQ5THs5kn3ZLUIuzuRUf+cfWywb66PuzsisOfbg4MsDO4kLRq3\niPgg2Xw8sDGamGB8g/3pWTNoButjdhX1C9fTw93sDBrLpLDKZYs2+rf5jyFs\ncF7Hf5BN+b8kKhlTrmLiRWBGVXYIW3VShsnAba73T5xViU00eZYY/R+uZHj2\n5uWAgMKdlOAHrz8+4t1nAj0/hTPluxHl6O2L0mo1Q6iJ70OQAZPMnNOu24KR\nBRYkvgPuNCoY+DKaxjcaLI8YFMJ+omJldZLks/kGHsLTGfGJaM+tiqk/UgwU\n4o+Snu1+gM2Huke4YWdiWNs7bkP6kbMTnbRUAw9f3+uByHG6SKTLcSc8cGxf\najIbnbBuzjk3tt5WX0umKHBhh1c5BgROSx4EgY3KEuAsRImULlwfKUmX1R7+\n/Og9L/ly2D8Z5S+LesMjo30ah76a90p2aa7sQQoQlJ64zPrMVKi2qcd4h6F5\nqgYwVRmAe9aXK5gXKU8SuwbgLi8BG1thuJTMfayZsiIDDMV7P3p+7luxP+4/\nNJX7+YnhpNaIx1c4JrDIMeamWp2n2cdT+JcZoLcSpNNJQMfD6fXAjArM7LXz\nYYeE\r\n=p94b\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIBSWHEjIcG940bYEOo9mzyaGFGH4Y6gEXtwcyT408Y1LAiEAxW5s1amj+NtGFgKTAH5rQhOy7jsi5un+TDz3L5Pw024="
    }
  ]
}

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_version:028283f3876487c2a0b6cbf4a1231dfdb8eed782b97564209ec8c7e114771389

Other collected versions

0.0.311 May0.0.211 May0.0.110 MayView all collected versions →