Coder Social home page Coder Social logo

powingho / instagram-stories-api-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kyleturman/instagram-stories-api-ruby

0.0 2.0 0.0 84 KB

Wrapper to get your Instagram Stories from Instagram's API in Ruby

License: The Unlicense

Ruby 100.00%

instagram-stories-api-ruby's Introduction

Instagram Stories API

First and foremost, this is just an example of what is capable. Do not use this code to spam, cause harm, or otherwise violate the Instagram API Terms of Use. Don't blame me if Instagram suspends your account. :D

This is an example of how to access the Instagram Stories API, get your stories, and do what you want with them. I believe in an open internet and having access to the content you create. Hopefully things like this can encourage Instagram to provide more access to their API's and help us create more beautiful things on the web.

How it works

This API wrapper spoofs the user agent to pretend to be a random Android phone, logs-in, stores cookies, and requests the API.

instagram = InstagramStoriesAPI.new()
@user_stories = instagram.get_user_stories()
@stories = instagram.get_stories()

What can I do with it?

I wrote a script hosted on Heroku that polls the API every hour or so and uploads any new Instagram Stories I post to Tumblr so I can keep them around longer. http://kyleturman-instastories.tumblr.com

Shout outs

Shout out to mgp25's Instagram-API project. I gleaned a few ideas from how to generate ids and user agents from that project.

Shout out to CaliAlec's ChromeIGStory project for helping me get started the right foot and providing inspiration.

Questions?

Hit me up on Twitter if you want to chat about it.

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.