Section14.1Scrape all the Cottage Inn Pizza locations
Let’s say that you want to make a list of all the Cottage Inn Pizza locations. When you go to their website, it turns out that there are a lot of locations.
Below is code to collect all the Cottage Inn Pizza locations. Instead of scraping the data from the live site we are using a saved web page from the way back machine which is a free archive of web pages. This is useful since live sites can change over time.
This code probably seems a bit complicated. In this ebook, we will break down web scraping into a few common "plans". This example is made up of three plans. Click on each of them to learn more.