Book Image

R Web Scraping Quick Start Guide

By : Olgun Aydin
Book Image

R Web Scraping Quick Start Guide

By: Olgun Aydin

Overview of this book

Web scraping is a technique to extract data from websites. It simulates the behavior of a website user to turn the website itself into a web service to retrieve or introduce new data. This book gives you all you need to get started with scraping web pages using R programming. You will learn about the rules of RegEx and Xpath, key components for scraping website data. We will show you web scraping techniques, methodologies, and frameworks. With this book's guidance, you will become comfortable with the tools to write and test RegEx and XPath rules. We will focus on examples of dynamic websites for scraping data and how to implement the techniques learned. You will learn how to collect URLs and then create XPath rules for your first web scraping script using rvest library. From the data you collect, you will be able to calculate the statistics and create R plots to visualize them. Finally, you will discover how to use Selenium drivers with R for more sophisticated scraping. You will create AWS instances and use R to connect a PostgreSQL database hosted on AWS. By the end of the book, you will be sufficiently confident to create end-to-end web scraping systems using R.
Table of Contents (7 chapters)

Web Scraping with Rselenium

Selenium has been developed to test web applications. Selenium allows writing tests without the need to learn any test script language (Selenium IDE). In addition, C #, Groovy, Java, Perl, PHP, Python, Ruby and Scala, such as a series of popular programming language to provide testing environment. These tests can then be run on most modern web browsers. Selenium is an open source software under the Apache 2.0 license.

Selenium is designed to automate the operations of a web browser. With Selenium, any user can manually perform interactions that can be performed manually. Selenium can be used for any kind of automation, but the priority is to create automated web application tests.

The name of Selenium comes from a joke. Another automated testing framework was used as a popup during the development of Selenium, and the company was Mercury Interactive...