1. Learn
  2. /
  3. Courses
  4. /
  5. Web Scraping in R

Exercise

Select all children of a list

Given the following ordered list (using the ol element), which is stored as list_raw_html:


  1. Learn HTML
  2. Learn CSS
  3. Learn R
  4. Scrape everything!*

*Do it responsibly!


In this exercise, you'll learn to apply the rvest function that allows you to directly select children of a certain node.

Instructions 1/3

undefined XP
    1
    2
    3
  • Turn the corresponding HTML string (list_raw_html) into an HTML document rvest can work with and call it list_html.