Session Ready
Exercise

Read in HTML

Take a look at the following excerpt from a website:


Web Scraping is cool

It involves writing code – be it R or Python.

DataCamp has courses on it.


The corresponding HTML is provided to you in the html_excerpt_raw variable.

In this exercise you'll use rvest to read it into R, so you can work with it.

As you are working with the rvest package during this entire course, it will always have been preloaded for you with the library(rvest) command.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Take the html_excerpt_raw variable and turn it into an HTML document that R understands using a function from the rvest package.