{"_id":"9gag-scraper","_rev":"6-d5585971d231795e112690598fef1852","name":"9gag-scraper","description":"Scrape data/images from 9GAG website","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"9gag-scraper","version":"1.0.0","description":"Scrape data/images from 9GAG website","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/shylesh107/9gag-scraper.git"},"keywords":["9gag","scraper","9gag-scraper","memes","meme-scraper","jokes"],"author":{"name":"Shylesh Mohan","email":"shylesh107@gmail.com"},"licenses":[{"type":"MIT","url":"https://github.com/shylesh107/9gag-scraper/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/shylesh107/9gag-scraper/issues"},"homepage":"https://github.com/shylesh107/9gag-scraper#readme","dependencies":{"lodash":"^3.10.1","x-ray":"^2.0.2"},"gitHead":"2b6a1d5a41077cc1a3c77ec28b26255c681947ba","_id":"9gag-scraper@1.0.0","_shasum":"fd17f2ddafdfedcc55c6ece7a50cf50e3ca36519","_from":".","_npmVersion":"2.13.5","_nodeVersion":"0.12.5","_npmUser":{"name":"shylesh107","email":"shylesh107@gmail.com"},"dist":{"shasum":"fd17f2ddafdfedcc55c6ece7a50cf50e3ca36519","tarball":"https://registry.npmjs.org/9gag-scraper/-/9gag-scraper-1.0.0.tgz","integrity":"sha512-W1WWBKF8uinX6s/mzkjjo6xNANzPQRxQsCeOpgVQlVs/fkdMIGHTtfB6Tihflqg8BbIxG898O0s4Pfvd6CilWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUvVqi9wkHHvVohYa+GRj5gGpY8bM7qnW8TDVBxR5yXgIhAKLAAKm2mNWtk7iXGgTNgtPl3S3XR2MJ1r+HsG9nxb7b"}]},"maintainers":[{"name":"shylesh107","email":"shylesh107@gmail.com"}],"deprecated":"this package has been deprecated"},"1.0.1":{"name":"9gag-scraper","version":"1.0.1","description":"Scrape data/images from 9GAG website","main":"index.js","scripts":{"test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://github.com/shylesh107/9gag-scraper.git"},"keywords":["9gag","scraper","9gag-scraper","memes","meme-scraper","jokes"],"author":{"name":"Shylesh Mohan","email":"shylesh107@gmail.com"},"licenses":[{"type":"MIT","url":"https://github.com/shylesh107/9gag-scraper/blob/master/LICENSE"}],"bugs":{"url":"https://github.com/shylesh107/9gag-scraper/issues"},"homepage":"https://github.com/shylesh107/9gag-scraper#readme","dependencies":{"lodash":"^3.10.1","x-ray":"^2.0.2"},"devDependencies":{"chai":"^3.2.0","mocha":"^2.3.0"},"gitHead":"2c02923eaecbef093f9d076cc5f4c3e567d52446","_id":"9gag-scraper@1.0.1","_shasum":"1077c183b8036c4979842b07a7cc59ccef63054b","_from":".","_npmVersion":"2.13.5","_nodeVersion":"0.12.5","_npmUser":{"name":"shylesh107","email":"shylesh107@gmail.com"},"dist":{"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=="}]},"maintainers":[{"name":"shylesh107","email":"shylesh107@gmail.com"}],"deprecated":"this package has been deprecated"}},"readme":"# 9gag-scraper\n\n[![Build Status](https://travis-ci.org/shylesh107/9gag-scraper.svg?branch=master)](https://travis-ci.org/shylesh107/9gag-scraper)\n\n*Scrape data from 9GAG website*\n\n## Installation\n\nnpm install 9gag-scraper --save\n\n## Usage\n\n```js\nvar gagScraper = require('9gag-scraper')\n```\n\n## Scrape data from a 9GAG section\n\n```js\nnew gagScraper(\"trending\").getGags(function (error, data) {\n\n    console.log(data.count); // Total posts returned\n    console.log(data.gags); // posts object ( array of posts )\n\n    console.log(data.gags[0].id); // 9GAG post ID\n    console.log(data.gags[0].url); // 9GAG post URL\n    console.log(data.gags[0].title); // 9GAG post title\n    console.log(data.gags[0].image); // 9GAG post image link\n\n});\n\n// You can also pass in any valid section you want to scrape from ( Defaults to 'hot' )\nnew gagScraper(\"fresh\").getGags(function (error, data) {\n});\n\nnew gagScraper(\"meme\").getGags(function (error, data) {\n});\n```\n\n## NSFW section scraping won't work as it requires users to login to view the content.\n\n## To get a random post\n\n```js\nnew gagScraper().getRandom(function (error, data) {\n    console.log(data.id); // 9GAG post ID\n    console.log(data.url); // 9GAG post URL\n    console.log(data.title); // 9GAG post title\n    console.log(data.image); // 9GAG post image link\n});\n\nnew gagScraper(\"random\").getGags(function (error, data) {\n});\n```\n\n## Tests\n\nnpm test","maintainers":[{"name":"shylesh107","email":"shylesh107@gmail.com"}],"time":{"modified":"2022-06-12T14:09:05.156Z","created":"2015-09-05T22:06:54.213Z","1.0.0":"2015-09-05T22:06:54.213Z","1.0.1":"2015-09-06T00:07:06.762Z"},"homepage":"https://github.com/shylesh107/9gag-scraper#readme","keywords":["9gag","scraper","9gag-scraper","memes","meme-scraper","jokes"],"repository":{"type":"git","url":"git+https://github.com/shylesh107/9gag-scraper.git"},"author":{"name":"Shylesh Mohan","email":"shylesh107@gmail.com"},"bugs":{"url":"https://github.com/shylesh107/9gag-scraper/issues"},"readmeFilename":"README.md","users":{"kurozero":true}}