I am hoping someone would be able to help me figure out how to scrape a .csv file that does not have a link.
Clicking the Download button in R
I would like to have R download the .csv file that is generated when clicking the 'Download dataset' next to the first table on this website https://www.opentable.com/state-of-industry. The closest post I found to my problem is this, but I cannot find the API link that is used in the solution.
Potential Second Question: Saving the downloaded file to another location
Ideally, I would like the file to be loaded in R (similar to what the solution in the link above does), but if the only way is to download it on my device and then read it in R, then I would like the .csv file to be installed in a specific folder (e.g. C:\Documents\OpenTable) and overwrite the existing file with the same name.
Thanks!