Miss any of our Open RFC calls?Watch the recordings here! »

night-stalker

1.3.6 • Public • Published

night-stalker

npm version

Simple Instagram scraper for recent activities.

The previous library I was using stopped working after Instagram removed their public facing APIs. Public posts should be readily accessible by people anyway because well, they are public.

Features

  • Gets up to 12 recent posts (video, post, carousel photos)
  • Retrieves latest stories by users

Getting Started

This library requires Node 8.10.0 and above as it utilizes on async/await, and as per ESLint's requirements.

yarn install

Usage

  const balanar = await NightStalker.loadBrowser();
  balanar.setUserName('username-to-scrape');
  
  const posts = await balanar.getPosts(noOfPosts);
 
  // Login is required for stories. Don't commit your credentials to version control!
  // The account also should not have 2FA enabled.
  await balanar.login(username, password); 
  const stories = await balanar.getStories();

Take note that story URLs are time-sensitive and will expire within x minutes.

TODO

  • Livestream URLs

Install

npm i night-stalker

DownloadsWeekly Downloads

4

Version

1.3.6

License

MIT

Unpacked Size

418 kB

Total Files

17

Last publish

Collaborators

  • avatar