11  Web data

Every dataset in this book so far arrived as a tidy file someone else prepared. This chapter is about collecting data yourself: how a web page is put together, how to extract data from one, and how to request data directly from services that provide it.

11.1 How a web page is put together

11.2 Fetching a page

11.3 Extracting data from a page

11.4 Getting data from an API

11.5 Summary

11.6 Exercises