Current collected state Current
Observed since 20 Oct, 21:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
9gag-scraper
Scrape data/images from 9GAG website
Scrape data from 9GAG website
npm install 9gag-scraper --save
var gagScraper = require('9gag-scraper')
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) {
});
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) {
});
npm test
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
lodashEnvironment{
"local_name": "lodash",
"alias": false,
"peer_metadata": null
} | ^3.10.1 | runtime |
x-rayEnvironment{
"local_name": "x-ray",
"alias": false,
"peer_metadata": null
} | ^2.0.2 | runtime |
chaiEnvironment{
"local_name": "chai",
"alias": false,
"peer_metadata": null
} | ^3.2.0 | development |
mochaEnvironment{
"local_name": "mocha",
"alias": false,
"peer_metadata": null
} | ^2.3.0 | development |
Source distribution
{
"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=="
}
]
}Observed since 20 Oct, 21:37 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:ac89ce4e4fb1f2664e2721ad498cc7ca72ed3c32b229226c80253028f6cc5e4e