[R] Downloading data directly from internet

Ista Zahn istazahn at gmail.com
Sun Sep 15 21:47:41 CEST 2013


Hi Ron,

It looks like the data you want is generated by javascript; if so
Rcurl will not be able to retrieve it for you. See
http://stackoverflow.com/questions/14491598/how-do-i-download-the-source-code-for-a-webpage
and http://stackoverflow.com/questions/9778076/how-to-view-webpage-source-code-using-r?rq=1
for some ideas to get you started.

Best,
Ista

On Sun, Sep 15, 2013 at 8:21 AM, Ron Michael <ron_michael70 at yahoo.com> wrote:
> Hi,
>
> I need to download data from this site:
> http://www.cmegroup.com/trading/agricultural/grain-and-oilseed/corn_quotes_globex.html
>
>
> I tried with following set of codes:
>
>
> library(RCurl)
> library(XML)
>
> aa <- getURL("http://www.cmegroup.com/trading/agricultural/grain-and-oilseed/corn_quotes_globex.html")
> readHTMLTable(aa)
>
> However not getting the required data.
>
> Can someone please help me to point out how I can get that data?
>
> Your help will be highly appreciated.
>
> Thank you very much.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list