A Instagram Automation Libary for NodeJS
Import the libary and create a new client object.
const InstagramJS = require('instagram-js')
const client = new InstagramJS.Client()
- client.init
- client.login
- client.close
- client.followerCount
- client.follow
- client.unfollow
- client.comment
- client.likePost
- client.unlikePost
- client.post
Creates a Chromium instance to emulate Instagram on mobile.
dev
<bool> (Optional) If true is given the Chromium browser will be visable and not run in the hidden in the background
Logs into your Instagram account, this is required to perform actions that being signed in necessary.
username
<string> Instagram account usernamepassword
<string> Instagram account password- Returns <Promise>
This will close the Chromium browser used for oporating Instagram, to reopen you will need to call client.init(). It is recommened to close when not in use in complex applications to free up memory.
- Returns <Promise>
Queries and returns the amount of followers an account has. You do not need to be logged in to use this method.
Follows an Instagram account if the logged in account ins't already doing so.
username
<string> Instagram account to follow
Unfollows an Instagram account if the logged in account ins't already doing so.
Comments a message on a specified Instagram post.
Likes a specified Instagram post.
UnLikes a specified Instagram post.
Creates a post.