Skip to content

Commit

Permalink
Update getContent.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchypark committed Nov 18, 2016
1 parent f8b8c71 commit c899038
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/getContent.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ getContent <- function(url = url) {
# content[c(-length(content),-(length(content)-1))]
content <- paste0("<p>",content,"<p>")
content <- paste0(content, collapse = " ")
content <- gsub("<p><p> ","",content)

newsInfo <- data.frame(url = url, datetime = datetime, edittime = edittime, press = press, title = title, content = content, stringsAsFactors = F)
} else {
Expand Down

0 comments on commit c899038

Please sign in to comment.