diff --git a/warn/scrapers/va.py b/warn/scrapers/va.py index 3832c1d..13618ac 100644 --- a/warn/scrapers/va.py +++ b/warn/scrapers/va.py @@ -146,6 +146,7 @@ def scrape( logger.debug(f"Attempting to fetch {csv_url}") driver.get(csv_url) sleep(30) # Give it plenty of time to evaluate Javascript + driver.quit() download_dir = os.path.expanduser("~") + "/Downloads" @@ -172,8 +173,6 @@ def scrape( copyfile(latest_file, target_filename) - driver.quit() - # Download it to the cache # cache.download("va/source.csv", csv_url, verify=True)