Skip to content

Instantly share code, notes, and snippets.

@christophergandrud
Created December 26, 2011 08:12
Show Gist options
  • Save christophergandrud/1520744 to your computer and use it in GitHub Desktop.
Save christophergandrud/1520744 to your computer and use it in GitHub Desktop.
Save Fed Speeches for a Subset
## Save raw HTML to individual text files for a subset
# Create id numbers that matches the full list of URLS
# This included URLs numbered 490 to 625
fed.subset.df$id <- c(490:625)
y <- 1:nrow(fed.subset.df)
## Save Subset of HTML files
for(i in y) {
idNumber <- fed.subset.df[i,2]
write(as.character(fed.subset.df[i,1]), file = paste(outpathA, "/", idNumber, ".txt", sep = ""))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment