get_csv_auto.Rd
get_csv_auto
allows you to directly download CSV files from the web. You can download CSV data for a specific location or date.
get_csv_auto(
url,
username,
password,
location,
date,
download_path,
show_message = FALSE
)
A character string specifying the URL to log into.
A character string specifying the username for login.
A character string specifying the password for login.
A character string specifying the location.
A Date object specifying the date.
A character string specifying the path where the downloaded CSV file should be saved.
A logical value. If TRUE, a message will be displayed after the download. Default is FALSE.
CSVs in the path of download_path.
# Download CSV data for a specific location or date
get_csv_auto(url = Sys.getenv("url"),
username = Sys.getenv("username"),
password = Sys.getenv("password"),
location = c("607","608"),
date = c("2024-02-18", "2024-02-19"),
download_path = "C:/Users/Dell/Downloads/download_rename")
#> ● Directory already exists: NonEmptyCSVs
#> ● Directory already exists: EmptyCSVs
#> ● Downloading CSVs for date: 2024-02-18
#> ● Downloading CSVs for date: 2024-02-19
#> ● All stations and dates nedap ppt CSVs had been downloaded.