Re: [R] web scraping image

2015-06-09 Thread boB Rudis
x27;, > sep = "") > tab.url <- > paste('http://nwis.waterdata.usgs.gov/nwis/peak?site_no=',siteno[a],'&agency_cd=USGS&format=rdb', > sep = "") > > graphic.fn <- paste('graphic_',siteno[a],'.gif', sep = "") >

Re: [R] web scraping image

2015-06-08 Thread Curtis DeGasperi
('peakfq_',siteno[a],'.txt', sep = "") tab.fn <- paste('tab_',siteno[a],'.txt', sep = "") download.file(graphic.img,graphic.fn,mode='wb') download.file(peakfq.url,peakfq.fn) download.file(tab.url,tab.fn) } > ---

Re: [R] web scraping image

2015-06-04 Thread Jim Lemon
Hi Chris, I don't have the packages you are using, but tracing this indicates that the page source contains the relative path of the graphic, in this case: /nwisweb/data/img/USGS.12144500.19581112.20140309..0.peak.pres.gif and you already have the server URL: nwis.waterdata.usgs.gov getting the