CodeDotJS / instory

:fire: Get downloadable url to the stories of an Instagram user!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool



Get downloadable url to the stories of an Instagram user!


Install

$ npm install --save instory

Usage

  • all
const instory = require('instory');

instory('9gag').then(res => {
  console.log(res);
  /*
  { story:
   [ 'https://scontent-lax3-2.cdninstagram.com/vp/../t50.12441-16/...8147460402176414839_n.mp4',
     'https://scontent-lax3-2.cdninstagram.com/vp/../t50.12441-16/...7961590752994505111_n.jpg' ] }
  */
})
  • exclude videos
instory('9gag', 'video').then(res => {
  console.log(res);
  /*
  ['https://scontent-lax3-2.cdninstagram.com/vp/../t50.12441-16/...7961590752994505111_n.jpg']
  */
});
  • exclude images
instory('9gag', 'image').then(res => {
  console.log(res);
  /*
  ['https://scontent-lax3-2.cdninstagram.com/vp/../t50.12441-16/...8147460402176414839_n.mp4']
  */
});

API

instory(username);
instory(username, exclude)
  • username : string
  • exclude : string ~ optional

Related

  • instories : Download Instagram Stories from the Command-line!

NOTE : This module is built upon the API used by Stories IG.

License

MIT © Rishi Giri

About

:fire: Get downloadable url to the stories of an Instagram user!

License:MIT License


Languages

Language:JavaScript 100.0%