If you open up this webpage, there's a green "export" button: http://mics.unicef.org/surveys
If you click it in a web browser, the file surveys_catalogue.csv
begins downloading. My goal is to replicate this download (of the full, unfiltered csv file) within R.
When I inspect element
in chrome, it looks like this page has a request payload
header, which I can't figure out how to implement within R?
You might be better off with:
Same data but also more data.
That URL is what's used to build the top filter row (the site makes a few XHR requests to build the table and the filter row). The CSV "export" is an extra step you really don't need since you can grab the XHR URL directly (as I did here).