node-ig-framework
Framework for interacting with instagrams private api in a usable manner (forked from andre's work and improved and fixed)
Installation
- Install node.js from https://nodejs.org/
- Create a new project folder
$ cd
to that directory- Run
$ npm init
and follow prompts - Run
$ npm install node-ig-framework
and boom you're done!
Setup
const Insta = require('node-ig-framework');
const client = new Insta.Client();
client.on('connected', () => {
console.log(`Logged in as ${client.user.fullName} (${client.user.username})`);
console.log(`User ID: ${this.client.user.id}`);
console.log(`Followers: ${this.client.user.followerCount}`);
console.log(`Following: ${this.client.user.followingCount}`);
console.log(`Business: ${this.client.user.isBusiness}`);
console.log(`Verified: ${this.client.user.isVerified}`);
console.log(`User ID: ${this.client.user.isPrivate}`);
console.log(`Private: ${this.client.user.id}`);
});
client.on('messageCreate', (message) => {
if (message.author.id === client.user.id) return
message.markSeen();
if (message.content === '!ping') {
message.reply('!pong');
}
});
client.login('username', 'password');