Socket
Book a DemoInstallSign in
Socket

instagram-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instagram-analyzer

A node.js lib to get recent photos, with all likes and comments, related to a tag.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Instagram analyzer

Build Status Coverage Status

A node.js lib to get recent photos, with all likes and comments, related to a tag.

npm install

npm install instagram-analyzer

Then you can use it like this:

var when   = require('when');
var Instagram = require('instagram-analyzer');

var insta = new Instagram({
    instagram: {
        clientId: 'your client id',
        clientSecret: 'your client secret'
    }
});

when(insta.getRecentMediasForTagFull('sorenso', 'sorenso', 2))
    .done(function (mediaList) {
        for (var i = 0; i < mediaList.length; i++) {
            console.log('#' + i + ': ', mediaList[i].caption.text);
            console.log('    ', 'Likes (count/elements):', mediaList[i].likes.count, mediaList[i].likes.data.length);
            console.log('    ', 'Comments (count/elements):', mediaList[i].comments.count, mediaList[i].comments.data.length);
        }
    }, console.error);

Howto run app

Copy config-dist.js to config.js and insert your Instagram clientId and clientSecret.

cp ./config/config-dist.js ./config/config.js
vim ./config/config.js

Run the app with the tag you want to filter on.

node app/app.js -t sorenso -l 10

You can also filter by tag and user

node app/app.js -t sorenso -u sorenso -l 10

FAQs

Package last updated on 22 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts