Reader small image

You're reading from  R Web Scraping Quick Start Guide

Product typeBook
Published inOct 2018
Reading LevelBeginner
PublisherPackt
ISBN-139781789138733
Edition1st Edition
Languages
Concepts
Right arrow
Author (1)
Olgun Aydin
Olgun Aydin
author image
Olgun Aydin

Olgun Aydin is a PhD candidate at the Department of Statistics at Mimar Sinan University, and is studying deep learning for his thesis. He also works as a data scientist. Olgun is familiar with big data technologies, such as Hadoop and Spark, and is a very big fan of R. He has already published academic papers about the application of statistics, machine learning, and deep learning. He loves statistics, and loves to investigate new methods and share his experience with other people.
Read more about Olgun Aydin

Right arrow

Step-by-step web scraping with RSelenium

In this part, we are going to focus on collecting data from Instagram by using RSelenium. First of all, we are going to navigate the URL of the Instagram post, and collects comments and parses comments to detect users who put comments and users who are mentioned.

Collecting data with RSelenium

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"...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
R Web Scraping Quick Start Guide
Published in: Oct 2018Publisher: PacktISBN-13: 9781789138733

Author (1)

author image
Olgun Aydin

Olgun Aydin is a PhD candidate at the Department of Statistics at Mimar Sinan University, and is studying deep learning for his thesis. He also works as a data scientist. Olgun is familiar with big data technologies, such as Hadoop and Spark, and is a very big fan of R. He has already published academic papers about the application of statistics, machine learning, and deep learning. He loves statistics, and loves to investigate new methods and share his experience with other people.
Read more about Olgun Aydin