-
-
Save abresler/3249791 to your computer and use it in GitHub Desktop.
Gather Fed Speeches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Download websites | |
addresses <- read.csv("~/links.full.csv") | |
for (i in addresses){ | |
fed.text <- getURL(i) | |
} | |
fed.df <- as.data.frame(fed.text) | |
## Save raw HTML to individual text files | |
outpathA <- "~/fed.text.indv.full/" | |
x <- 1:nrow(fed.df) | |
for(i in x) { | |
write(as.character(fed.df[i,1]), file = paste(outpathA,"/",i,".txt",sep = "")) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment