download_csv_auto() is used to download CSVs from chrome browser.

download_csv_auto(
  url,
  username,
  password,
  csv_position,
  location,
  date,
  download_path
)

Arguments

url

The login url of pig performance test station website.

username

The username of pig performance test station website.

password

The password of pig performance test station website.

csv_position

The pisiton of csv download item.

location

Numeric value in string format.

date

The dates of data download.

download_path

The folder of downloading csv files.

Value

CSVs in the path of save_path.

Examples

# 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.