From 0802c295d631f2c245e4b10200ee3a1dab128c5d Mon Sep 17 00:00:00 2001 From: Lucky <66523959+l-ucky@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:09:25 -0300 Subject: [PATCH] Update 4ChanScraperv2.R I added an automatic CSV naming scheme based on date and time, directly into your `~/Documents/Stats/4Chan Scraper/` folder. --- 4ChanScraperv2.R | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/4ChanScraperv2.R b/4ChanScraperv2.R index c3dab65..68ee00f 100644 --- a/4ChanScraperv2.R +++ b/4ChanScraperv2.R @@ -328,5 +328,6 @@ tidy_pol_fixed2 %>% # Time to Save the Data -# Make sure to change the date when saving to not overwrite the old data -#write.csv(tidy_pol_fixed, "~/Documents/Stats/4Chan Scraper/Aug-22-2023-1116h.csv", row.names=FALSE) +timestamp <- format(Sys.time(), "%b %d %Y %X") +filename <- paste0("~/Documents/Stats/4Chan Scraper/",timestamp,".csv") +write.csv(tidy_pol_fixed2, file = filename)