Select all children of a list
Given the following ordered list (using the ol
element), which is stored as list_raw_html
:
- Learn HTML
- Learn CSS
- Learn R
- 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.
This exercise is part of the course
Web Scraping in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Read in the corresponding HTML string
list_html <- ___