Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 954 Bytes

File metadata and controls

41 lines (27 loc) · 954 Bytes

Dominion Power Scraper

====================

The dominion-power-scraper is responsible for scraping client information from Dominion Power's website

Usage

Console usage

You can use the console to test functionality or add new. To use:

$ bundle exec bin/console 

From here, you can run commands such as:

d = DominionPower::Driver.new
d.visit_dominion_power

This will give u a session and take you to the dominion power website. Interact with the page through

d.driver 

Rake usage

To get the bill info for a particular client, use the following rake task

$ username={X} password={X} bundle exec rake scraper:scrape

Wishlist

  • Replace puts statements with logging gem
  • Grab all historical data for a client
  • Add multi-threaded functionality to scrape multiple clients at once