constInstagram=require("instagrams");// getCookies Function Returns Cookies!(async()=>{constcookies=awaitInstagram.getCookies("username","password");console.log(cookies);// Copy All From Console And Save It In Text File})();
Examples
Fetching Account Info!
constInstagram=require("instagrams");constcookies="";// Paste All Cookies Here That You Got From Console!constscraper=newInstagram(cookies);// Fetch Account Info Using Promises!scraper.getProfile("instagram").then((data)=>{console.log(data);});// Fetch Account Info Using Async/Await!(async()=>{constprofileData=awaitscraper.getProfile("instagram");console.log(profileData);// Copy All From Console And Save It In Text File})();