Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

1

config/config-dist.js

@@ -8,3 +8,2 @@ /*

module.exports = {
version: '1.0.0',
logLevel: 'debug', // debug, verbose, info

@@ -11,0 +10,0 @@ instagram: {

2

lib/instagram.js

@@ -24,3 +24,3 @@ /*

log: function log(level, msg) {
console.log(level, msg);
//console.log(level, msg);
}

@@ -27,0 +27,0 @@ };

{
"name": "instagram-analyzer",
"description": "A node.js lib to get recent photos related to a tag.",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/5orenso/instagram-analyzer",

@@ -6,0 +6,0 @@ "author": {

@@ -8,4 +8,34 @@ # Instagram analyzer

## Howto
## npm install
```bash
npm install instagram-analyzer
```
Then you can use it like this:
```javascript
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.

@@ -12,0 +42,0 @@ ```bash

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc