[NB] Scraping OpenTable's "State of the Industry" page

MODERATOR NOTE: coronavirus resources & updates: https://wolfr.am/coronavirus


4 Likes

Hi Aaron,

Nice post! I expected the impact to be bad, but not so bad. Unfortunately, many restaurants will not be able to recover from the financial impact.

Here is another way to download the raw data

session = StartWebSession[];
WebExecute[session, "OpenPage" -> "https://www.opentable.com/state-of-industry"];
downloadButton = WebExecute[session, "LocateElements" -> "Tag" -> "Button"];
WebExecute[session, "ClickElement" -> downloadButton];
rawData = Import["~/Downloads/state_of_industry_data.csv", "Dataset"]