Overview
- Define HTML and CSS selectors
- Introduce the
rvestpackage - Demonstrate how to extract information from HTML pages
- Practice scraping data
Before class
- Chapter 1 and 4 in Web Scraping with R
Several packages are needed for this week’s lectures (all installed on R workbench). If you are using R from your laptop (VS. R Workbench), I’d suggest following the lectures using R Workbench and installing the packages after class.
Additional Resources
rvestdocumentationhttrdocumentation- Web Scraping using R Cheat Sheet
- More install-and-play API packages for R
Class materials
- Run the code below in your console to download today’s in-class
exercises:
usethis::use_course("CFSS-MACSS/web-scraping")