Code Monkey home page Code Monkey logo

instagram-stories's Introduction

instagram-stories

Build Status XO code style

Get the Instagram Stories in Node.js

Install

npm install --save instagram-stories

Usage

const {
  getStories,
  getStoriesFeed,
  getMediaByCode,
  getUserHighlights,
  getUserByUsername
} = require('instagram-stories')

// Get stories of Instagram
// id:        account id for get stories
// userid:    me id
// sessionid: value of cookies from Instagram
getStories({ id: 25025320, userid: 1284161654, sessionid: '' }).then(stories => {
  console.log(stories)
})

// Get stories of people you follow
getStoriesFeed({ userid: 1284161654, userid: 1284161654, sessionid: '' }).then(feed => {
  console.log(feed)
})

// temporary broken. Looking for working solution
getMediaByCode({ code: 'BUu14BdBkO5', userid: 1284161654, sessionid: '' }).then(media => {
  console.log(media)
})

getUserByUsername({ username: 'instagram', userid: 1284161654, sessionid: '' }).then(({ user }) => {
  console.log(user.id)
})

getMediaByLocation({ id: '292188415', userid: 1284161654, sessionid: '' }).then(({ location }) => {
  console.log(location.name)
})

getUserHighlights({id: '25025320', userid: 1284161654, sessionid: '')).then(({ tray }) => {
  console.log(tray);
})

License

MIT © Jesús Lobos, Dmitry Konstantinov

instagram-stories's People

Contributors

andreasgassmann avatar dependabot[bot] avatar emilgpa avatar jlobos avatar konstantinov avatar preethamvishy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

instagram-stories's Issues

Rate Limit?

Hello, i wanted to know what are the rate limits for this?
I kinda played around this, got what i wanted, instagram story image but as a consequence instagram sent me notification that my acconut is suspected of phishing attack, and needed to reset password.

Any tips?

Documentation?

Hi, I'm trying to automate the download of some instagram stories but I still can't get from the reel_media json to the actual media.
What kind of request do I have to make? Is it even possible?

Response Error In Get Stories

This error occurs when calling the "getStories" function after the new version update.
"UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined"

Library is not working

This library is using Instagram API v1 which is deprecated. Therefore, the library is not working.
In addition, there are multiple errors in the example code.

[Request] Highlight_Stories

could you do us a favor and add it, thanks bro!

getUserHighlightsWithSession(userID, sessionID) {
if (typeof userID !== 'string' || typeof sessionID !== 'string') {
throw new TypeError(Expected a string, got ${typeof userID !== 'string' ? typeof userID : typeof sessionID});
}

	return axios({
		method: 'GET',
		url: `https://i.instagram.com/api/v1/highlights/${userID}/highlights_tray/`,
		headers: {
			'Cookie': `sessionid=${sessionID}`,
			'User-Agent': 'Instagram 9.5.1 (iPhone9,2; iOS 10_0_2; en_US; en-US; scale=2.61; 1080x1920) AppleWebKit/420+'
		}
	})
	.then((response) => response)
	.catch((error) => error);
}

get user from CVS file

hi, is it possible for the bot to get users from a specific CVS file and watch their story?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.