harisadam / ruby-instagram-scraper

А simple module for requests to Instagram without an API key.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

А simple module for requests to Instagram without an API key.

Installation

$ gem install ruby-instagram-scraper

Or with Bundler in your Gemfile.

gem 'ruby-instagram-scraper'

Methods

After installation you can do following requests to Instagram:

# Search by tag or username:
RubyInstagramScraper.search( "gopro" )

# Get user media nodes:
RubyInstagramScraper.get_user_media_nodes( "gopro" )

# Pass an "id" of node to offset:
RubyInstagramScraper.get_user_media_nodes( "gopro", "1259825963188747360" )

# Get media nodes by tag:
nodes = RubyInstagramScraper.get_tag_media_nodes( "gopro" )

# Get next portion of nodes of same tag by passing last node "id":
RubyInstagramScraper.get_tag_media_nodes( "gopro", nodes.last["id"] )

# Get media info:
RubyInstagramScraper.get_media( nodes.first["code"] )
RubyInstagramScraper.get_media( "BGGnlHDBV3N" )

About

А simple module for requests to Instagram without an API key.

License:MIT License


Languages

Language:Ruby 100.0%