download_csv_auto.Rd
download_csv_auto()
is used to download CSVs from chrome browser.
download_csv_auto(
url,
username,
password,
csv_position,
location,
date,
download_path
)
The login url of pig performance test station website.
The username of pig performance test station website.
The password of pig performance test station website.
The pisiton of csv download item.
Numeric value in string format.
The dates of data download.
The folder of downloading csv files.
CSVs in the path of save_path.
# Start selenium webdriver service
connect_to_browser(dest_dir = "C:/Users/Dell/Desktop/test")
#> ● An appropriate version of chromedriver.exe is already present.
#> ● You have already downloaded the .jar file in C:/Users/Dell/Desktop/test/selenium/4.0 .
#> ● Chrome browser was installed on this computer.
#> ● Java is installed on this computer.
#> ● New selenium server process created.
# Download CSVs
download_csv_auto(url = Sys.getenv("url"),
username = Sys.getenv("username"),
password = Sys.getenv("password"),
csv_position = "1",
location = c("606","607"),
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.