1.3.6 • Published 5 years ago

night-stalker v1.3.6

Weekly downloads
17
License
MIT
Repository
-
Last release
5 years ago

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
1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.0

6 years ago