Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 956 Bytes

README.md

File metadata and controls

38 lines (23 loc) · 956 Bytes

Instagram R scraper

Scrape Instagram using the instagram-java-scraper Java library in R.

Based on the project of postaddictme.

Dependencies

To run Java applications you need the Java Runtime Environment.

To execute Java code in R you need to install the package rJava from CRAN:

install.packages("rJava")

Instructions

  1. Configure the settings at the top of the script scraper.R:
## User account to scrape
user_account <- "berlinphil"

## Max number of posts to retrieve
media_count <- as.integer(100)
  1. Run the script:
source("scraper.R")
  1. Find the output datasets in the ./dataout/ directory.