instagram_feed_by_hashtag 0.0.4
Simple Instagram feed by hashtag, returns a JSON, no API authentication needed. Usage: Instagramfeedbyhashtag.feed(hashtag, count) # hashtag => string; count => integer. Example: Instagramfeedbyhashtag.feed('cars', 6) # Returns an JSON with 6 latest pics tagged with 'cars'. Full example: feed = Instagramfeedbyhashtag.feed( 'cars', 6 ) # Make request and store JSON in feed variable @images = [] # Define array for i in 0..(feed.count - 1) # Loop through feed @images << feed[i]['display_src'] unless feed[i].nil? # Grab images URLs and store them in @images end