Skip to content

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

License

Notifications You must be signed in to change notification settings

sborod/ruby-instagram-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

А 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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages