Skip to content

sachinB94/node-9gag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-9gag

A simple API for accessing 9gag

Installation

npm install node-9gag

##Usage

var gag = require('node-9gag')
  • Find a post on 9gag
gag.find('query', function (err, res) {
  // res = [
  //   {
  //     query: ,
  //     sectionHeader: ,
  //     result: {
  //       title: ,
  //       id: ,
  //       url: ,
  //       image:
  //     }
  //   }
  // ]
});
  • Get details of a post from its id
gag.getItem('id', function (err, res) {
  // res = {
  //   title: ,
  //   points: ,
  //   commentCount: ,
  //   image:
  // }
});
  • Access a section on 9gag (defaults to hot)
gag.section('section'[, hot/fresh], function (err, res) {
  // res = [
  //   {
  //     title: null,
  //     id: null,
  //     url: null,
  //     image: null,
  //     points: null,
  //     commentCount: null
  //   }
  // ]
});

About

A simple API for accessing 9gag

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published