No commit activity in last 3 years
No release in over 3 years
This gem gets instagram data with tag search
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 1.5.6, ~> 1.5
 Project Readme

This is tag search gem for Instagram.

Download data

  • page url
  • timestamp
  • count of comments
  • count of likes
  • caption
  • tags
  • owner id

How to use

# load gem library
require 'instagram-tag-search'

# make a instance
# tag_name : tag, get_number : number of download posts
instagramData = InstagramData.new(tag_name: '岸和田', get_number: 10)

# get data
# use getInstagramData method
instagramData.getInstagramData

# download data information
instagramData.instagram_data
# page url           instagramData.instagram_data[0][:pageUrl]
# timestamp          instagramData.instagram_data[0][:timestamp]
# count of comments  instagramData.instagram_data[0][:commentCount]
# count of likes     instagramData.instagram_data[0][:likeCount]
# caption            instagramData.instagram_data[0][:caption]
# owner id           instagramData.instagram_data[0][:userId]
# tags               instagramData.instagram_data[0][:tags]

# If you want to save to CSV file, use writeToCSV method.
# first argument is instagramdata
# second argument is csv filename
# if you do not specify second argument, 
# save file name is like this: getInstagramData_201807222200.csv
instagramData.writeToCSV(instagramData.instagram_data)

# If you want to view csv file with Excel,
# you have to convert character encode to sjis.
# CSV file save to [[filename]]_sjis.csv
# [restriction] some character convert to '?'.
# For example, emoji, like this. 😍 -> ?
instagramData.convertCSVtoSJIS