I downloaded this file and link looks like this http://www.hactl.com/webapp/hactlpbf/pbfcontroller/HDCRDF;PBF_JSESSIONID=Pvl9TPbB7585NLhLTy9vKQTh9Mj42GW2P10LTVGHKnSwznRwwKy5!-315031026 so it might be hard to download this using R, since there is no static link. But you could try using
postForm
function fromRCurl
package like thispostForm("www.hactl.com/en-US/Media-Centre/Cargo-Statistics.aspx",dateTo='Mar 2014', (insert here the rest of form inputs), style="POST")
To unzip file use
unzip
function- To copy file to specific location use
file.copy
function.
Download zip file from website with selection to R
Вопрос
I would like to download data from this links
The tasks would be:
- download the winzip file
- unzip the file
- save it to specific location, lets say C:/data.
Although I have limited knowledge on html, I think the following html code is related to the form:
<tr class="downloadStatisticItem" Style="display: table-row;">
Thanks for your help.
Решение
Не связан с StackOverflow