nook-knuckleolive
v1.0.0
Published
Knuckleolive Instagram Nook
Downloads
3
Maintainers
Readme
Installation:
npm i nook-knuckleolive
recommended to set the cookie
const { igApi, getCookie } = require("nook-knuckleolive");
// using constructor
const ig = new igApi("your cookie");
// you can get sesion id by using getSessionId function, it requires username & password
(async () => {
const session_id = await getCookie("username", "password");
console.log(session_id);
})();
const { igApi } = require("nook-knuckleolive");
// some example with proxy, but i never test it
const ig = new igApi("your cookie", false, {
proxy: {
host: 'proxy-url',
port: 80,
auth: {username: '', password: ''}
}
});
// Public post
ig.fetchPost("https://www.instagram.com/reel/CXhW_4sp32Z/").then((res) => {
console.log(res);
});
// User data
ig.fetchUser("mg.creativestudio").then((res) => {
console.log(res);
});
// Fetch stories
ig.fetchStories("adiraas.p").then((res) => {
console.log(res);
});
// Fetch highlights
ig.fetchHighlights("adiraas.p").then((res) => {
console.log(res);
});