October 2018
Beginner
114 pages
2h 36m
English
Let's start collecting data from Instagram by using the RSelenium library. First of all, we have to load the RSelenium library using the following command:
#loading libraries library(RSelenium)
Now we load Selenium drivers and start Selenium. It may take time, so please wait till loading finishes:
#loading drivers and starting selenium rD <- rsDriver() remDr <- rD[["client"]]
During loading drivers, you will see the following output on your RStudio console:

Let's navigate an Instagram post that has a packtpub hashtag:
#navigate post which has packtpub hashtagremDr$navigate("https://www.instagram.com/p/BiFW2XFD8CM/?hl=en&tagged=packtpub") ...Read now
Unlock full access