6. Scraping and APIs
Content for Wednesday, February 21, 2024
Summary
We can scrape data with rvest
(but scraping is, in general, bad), and talk to APIs and get blobs of JSON or XML back.
Readings
- Hadley Wickham, Garrett Grolemund, and Mine Çetinkaya-Rundel R for Data Science: Import, Tidy, Transform, Visualize, and Model Data, Second. (Sebastopol, CA: O’Reilly Media, 2023), https://r4ds.hadley.nz. Chapter 24, Web Scraping
- Zapier Guides: An Introduction to APIs