tools-for-instagram
Advanced tools
Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "tools-for-instagram", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Tools for instagram", | ||
@@ -5,0 +5,0 @@ "main": "src/tools-for-instagram.js", |
@@ -172,2 +172,21 @@ # Tools-for-Instagram | ||
``` | ||
#### getRecentPostLikers(ig, post); | ||
Get the last likers (max of 1000) of a post | ||
```javascript | ||
let posts = await getUserRecentPosts(ig, username); | ||
let likers = await getRecentPostLikers(ig, posts[0]); | ||
``` | ||
#### getRecentPostLikersByUsername(ig, username) | ||
Get the last likers (max of 1000) of the last post of the desired username | ||
```javascript | ||
let likers = await getRecentPostLikersByUsername(ig,'instagram'); | ||
//Show the last liker of the array | ||
console.log(likers[likers.length-1]); | ||
``` | ||
#### getFollowers(ig, username) | ||
@@ -277,1 +296,4 @@ It will save the followers inside the outputfolder with the format "acountName_followers.json" | ||
#### getUserRecentPosts(ig, username) | ||
@@ -40,4 +40,6 @@ function toolsForInstagram() { | ||
global.viewStoriesFromFollowers = require('./viewStoriesFromFollowers.js'); | ||
global.getRecentPostLikers = require('./getRecentPostLikers.js'); | ||
global.getRecentPostLikersByUsername = require('./getRecentPostLikersByUsername.js'); | ||
} | ||
module.exports = toolsForInstagram(); |
75651
54
1494
298