Giter Site home page Giter Site logo

utility-scraper's Introduction

utility-scraper โšก ๐Ÿ’ง

Requirements

Dependencies

python3 -m pip install pandas selenium

Download the necessary browser driver (Firefox preferred) from here and update the filepath to this driver.

DRIVER_PATH = "./geckodriver" # replace with path to driver for your OS

Datasets

The datasets used to collect necessary information are included in the repo under the datasets directory. To include a newer version of a specific dataset it should be included in the datasets directory and then update the corresponding variable at the top of utility-scraper.py with the appropriate filename.

    # Dataset files
    DATASETS_DIRECTORY_PATH            = "datasets" 
    US_ENERGY_PRODUCTION_BY_STATE_FILE = "annual_generation_state.xls"
    US_POPULATION_BY_CITY_FILE         = "sub-est2021_all.csv"
    US_WATER_PROVIDERS_BY_STATE_FILE   = "Water System Detail.csv"

Population

https://www2.census.gov/programs-surveys/popest/datasets/2020-2021/cities/totals/

File used

State Specific Electrical Production

https://www.eia.gov/electricity/data/state/

File used

Water Providers

https://ordspub.epa.gov/ords/sfdw/sfdw/r/sdwis_fed_reports_public/1

Under 'Select a Report' in the Report Options section, select 'Water System Detail'. Select the appropriate Submission year and quarter (e.g. 2022 Quarter 2) and then select View Reports.

State Specific Electrical Providers

Site scraped: findenergy.com

This site aggregates information found from several government agency reports (mostly EIA) found here

Usage

Data for all 50 states can be collected by running the utility-scraper.py file.

python3 utility-scraper.py

utility-scraper's People

Contributors

bhambleton avatar xvxd4sh avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.