Instacsraper is an R helper function package for using Instagram Scraper
You can install the released version of instascraper from Github with:
devtools::install_github("mohrosidi/instascraper")
# run this if instagram-scraper is not installed in your system
instascraper_install()
This is a basic example which shows you how to solve a common problem:
library(instascraper)
## get 10 media and media metadata from Cristiano Ronaldo account
get_media(username = "cristiano", media_type = "image", max = 10)
## get all comment data from IG post in Bandung City
get_comments(location = 100936334818444)
## get user profile information from user following data
get_profiles(following_input = TRUE, your_username = <YOUR ACCOUNT USERNAME>,
your_password = <YOUR ACCOUNT PASSWORD>)
## get location id using location name
search_location("Bandung")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.