Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/9xn/node-ig-framework
Framework for interacting with instagrams private api in a usable manner in a structure and format similar to discord's old bot development framework.
https://github.com/9xn/node-ig-framework
instagram instagram-api nodejs npm
Last synced: about 8 hours ago
JSON representation
Framework for interacting with instagrams private api in a usable manner in a structure and format similar to discord's old bot development framework.
- Host: GitHub
- URL: https://github.com/9xn/node-ig-framework
- Owner: 9xN
- License: agpl-3.0
- Created: 2022-04-15T05:52:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T23:10:28.000Z (8 months ago)
- Last Synced: 2024-04-06T18:15:16.095Z (7 months ago)
- Topics: instagram, instagram-api, nodejs, npm
- Language: JavaScript
- Homepage:
- Size: 164 KB
- Stars: 19
- Watchers: 3
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-ig-framework
Framework for interacting with instagrams private api in a usable manner in a structure and format similar to discord's old bot development framework.
## Installation
1. Install node.js from https://nodejs.org/
2. Create a new project folder
3. `$ cd` to that directory
4. Run `$ npm init` and follow prompts
5. Run `$ npm install node-ig-framework` and boom you're done!## Setup
```js
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(`Private: ${this.client.user.isPrivate}`);
});client.on("messageCreate", (message) => {
if (message.author.id === client.user.id) return;message.markSeen();
if (message.content === "!ping") {
message.reply("!pong");
}message.chat.startTyping({ time: 5000 });
});client.login("username", "password");
```