instagram-analyzer
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -8,3 +8,2 @@ /* | ||
module.exports = { | ||
version: '1.0.0', | ||
logLevel: 'debug', // debug, verbose, info | ||
@@ -11,0 +10,0 @@ instagram: { |
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37421
56
23
835