Skip to content

floresfdev/instagram-r-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Instagram scraper in R using a third-party Java lib.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages