Consider the URL https://masseyratings.com/cb/ncaa-d1/ratings
If one clicks on "More" and chooses "Export" a CSV file of the ratings is downloaded.
How would I use rvest, httr, etc to directly download this file from R? (Ideally I would even skip the step of saving the file and just convert the cvs to a data frame right away, but I would be satisfied either way.) I have tried to trace what is happening using the developer tools in chrome and firefox, but none of the examples with which I am familiar seem to apply to whatever is happening here.
Obviously it's not too difficult to just download the file and read it into R, but I would really like to automate the process.
The html code for the page include this:
<select class='mopulldown' id='pulldownlinks'>
<option value=''>More
<option value='cb/ncaa-d1/ratings?c=1'>Conferences
<option value='/map.php?s=379387&t=11590'>Map
<option value='/scores.php?s=cb2022&sub=11590'>Scores/Schedule Data
<option value='/cb2021/ncaa-d1/ratings'>cb2021
<option value='/team.php?t=11590&s=cb2022&all=1'>Rating Archive
<option value='/scoredist?s=cb2022&sub=11590&x=s'>Score Distribution
<option value='/extgms?s=cb2022&sub=11590'>Extreme Games
<option value='/path?s=cb2022'>Transitive Path
<option value='exportCSV'>Export
</select>
and it's the last selection that triggers the download of the CSV file.