Message Boards Message Boards

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

Posted 2 months ago
687 Views
|
1 Reply
|
4 Total Likes
|

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


Posted 2 months 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

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