You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

insta_scrape

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insta_scrape

1.1.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

Build StatusGem Version

alt text

InstaScrape

The instagram swiss army knife. Restores all deprecated hashtag functionality and grants public api access from instagram's front end without any of the authorization.

With include_meta_data: true, you can return a posts image, link, text, date, username, hi_res_image, and likes. See the examples and usage pages for different methods and how to use them.

Note [ PLEASE READ ]

The number of results may vary when using certain methods as this IS NOT an official endpoint.

Installation

Add this line to your application's Gemfile:

gem "insta_scrape"

For bleeding edge, install from the development branch:

gem "insta_scrape", :git => "https://github.com/dannyvassallo/insta_scrape.git", :branch => "develop"

And then execute:

$ bundle

Or install it yourself as:

$ gem install insta_scrape

How To Use

You'll probably want to use the whenever gem or something similar in order to create hashtag widgets like you once could. Scheduling a job (polling) and storing each post's information in your database/cache is one way to do it.

Standard Hashtag Scrape Example:

#basic use case
scrape_result = InstaScrape.hashtag("test")
scrape_result.each do |post|
  puts post.image
  puts post.link
  puts post.text
end

Long Scrape a hashtag and get additional metadata:

#you can set include_meta_data to false if
#you want to speed up the scrape
scrape_result = InstaScrape.long_scrape_hashtag('test', 1, include_meta_data: true)
scrape_result.each do |post|
  puts post.image
  puts post.link
  puts post.text
  puts post.date
  puts post.username
  puts post.hi_res_image
  puts post.likes
end

See the InstaScrape Wiki HERE to learn the rest of InstaScrape's features.

Problems? Need Help?

Create an issue and I'll respond as soon as I can. If it's a feature request and you've got some free time -- PRs are gladly welcomed.

Contributing

❗️Bug reports and pull requests are ALWAYS welcome on GitHub❗️. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 27 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.