1.0.1 • Published 2 years ago

instagrams v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Instagram Scraper For Serverless Micro's

NPM Downloads Version

Installation

npm i instagrams --save

Get Cookies Before Using Package!

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
})();

Examples

  • Fetching Account Info!

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
})();

Thanks To @Gimenz For insta-fetcher Library!