Ejemplo n.º 1
0
        // STATUS [ July 31, 2019 ] : this works
        // STEP 1: set report parameters and download CSV to local downloads folder
        // * Goes to a FanGraphs page and downloads the CSV from that page to local downloads folder
        // * Ultimately the CSV should be moved to project data folder (See MoveCsvToProjectFolder method)
        // * This should not run if a Csv file for current day already exists
        public async Task DownloadCsvToLocalDownloadsAsync(string endPoint)
        {
            _helpers.OpenMethod(3);

            string csvSelector = _endPoints.FanGraphsCsvHtmlSelector();
            await _csvHandler.ClickLinkToDownloadCsvFileAsync(endPoint, csvSelector).ConfigureAwait(false);
        }