我試圖從需要「我同意」按鈕的https頁面下載文件,然後存儲cookie。我很抱歉,如果這個答案是顯而易見的地方..如何使用R從需要cookie的SSL頁面下載壓縮文件
當我在Chrome中直接打開網頁,然後單擊「我同意」 - 文件開始自動下載。
我試圖複製this example,但我不認爲恆生網站實際存儲的Cookie /認證,所以我不知道這是否例子應該是所有我需要的。因爲我認爲getURL()調用將需要像cainfo = system.file(「CurlSSL」,「cacert.pem」,package =「RCurl」)的證書規範, ))
我太多的RCurl的初學者知道這個網站是非常困難的,或者如果我只是錯過了一些明顯的東西。
謝謝!
這從Rhelp網址可能是有用的:我救了它,但沒有需要它:(LINK)(http://r.789695.n4.nabble.com/How-to-set -cookies-in-RCurl-td4632693.html) –