Getting data from the web: scraping

Overview

  • Define HTML and CSS selectors
  • Introduce the rvest package
  • Demonstrate how to extract information from HTML pages
  • Practice scraping data

Before class

Several packages are needed for this week’s lectures–you will need to install packages and get API keys

Additional Resources

Class materials

  • Run the code below in your console to download today’s in-class exercises: usethis::use_course("CFSS-MACSS/web-scraping")