This script pulls SDWIS data tables from the EPA Envirofacts RESTful API. Data are saved in CSV format. Note that a single API query can only return up to 10,000 records.
The following tables are queried:
water_system
water_system_facility
treatment
service_area
geographic_area
docker run -it --rm -v $(pwd):/usr/local/app $(docker build -q -t sdwis_scraper .)