npm i instagrams --save
const Instagram = require("instagrams");
// getCookies Function Returns Cookies!
(async () => {
const cookies = await Instagram.getCookies("username", "password");
console.log(cookies);
// Copy All From Console And Save It In Text File
})();
const Instagram = require("instagrams");
const cookies = ""; // Paste All Cookies Here That You Got From Console!
const scraper = new Instagram(cookies);
// Fetch Account Info Using Promises!
scraper.getProfile("instagram").then((data) => {
console.log(data);
});
// Fetch Account Info Using Async/Await!
(async () => {
const profileData = await scraper.getProfile("instagram");
console.log(profileData);
// Copy All From Console And Save It In Text File
})();