Message Boards Message Boards

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

Posted 4 years ago

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


POSTED BY: Aaron Enright
Posted 4 years ago

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"]

enter image description here

POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract