Try this:

library(XML)
readHTMLTable('
http://www.invescopowershares.com/products/holdings.aspx?ticker=PGX', which
= 13, header = TRUE)

On Wed, Aug 4, 2010 at 6:07 PM, AndrewPage <savejarvis@yahoo.com> wrote:

>
> Hi all,
>
> I am using RCurl to try and download data from a website, but I'm having
> trouble finding out what URL to use.  Here is the site:
>
> http://www.invescopowershares.com/products/holdings.aspx?ticker=PGX
>
> See how in the upper right, above the displayed sheet, there's a link to
> download the data as a .csv file?  When I hit "copy url" and paste into
> getURL in R, it doesn't work.  That's no surprise because there isn't a URL
> in what gets pasted.  I was just wondering if there's any way around this.
>
> Thanks in advance,
>
> Andrew
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Finding-the-right-url-for-RCurl-tp2314163p2314163.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

