Instagram Scraping using R

Chris B

Newbie
Joined
Jun 29, 2017
Messages
26
Reaction score
2
*If this is the wrong forum for this question, I apologize. Please point me to the correct one*

Hello all,

I am trying to scrape Instagram with R (I also know some Python but definitely prefer R) and I am finding it very difficult.

Does anyone have a good resource for this? The resources i have found online are all directions made years ago, but since then instagram has changed its API policy. I am not trying to do anything too crazy, just save the details for my posts in a tabular format (time posted, amount of likes, amount of comments, etc)

If anyone has any good resources, please let me know.

Thanks
 
The easiest way is by using the private API. There are many documentations of it on github, especially in Python.
 
you just need to scrape the json data, instagram its relatively easy to scrape. You have to explore more the developer tools on your browser, its not a question if R or python its better.
 
you just need to scrape the json data, instagram its relatively easy to scrape. You have to explore more the developer tools on your browser, its not a question if R or python its better.
Thanks
Do you know of any websites or anything that go into more detail?
 
Thanks for all of the help.

Actually doing the data mining in R is not the problem. It is connecting to Instagram via R is what I'm struggling with. I keep receiving errors when I try to connect.
 
What kind of errors? You simply need to send raw http requests, get the json data back and do stuff with it.
 
You can use scraper package to extract data in json through python a easy one!
 
learn how to do a get/post requests, apply headers, read json data, thats all you need to learn to scrape instagram, also of course know how to work with network tab of developer tools on chrome.
 
Back
Top