Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1000 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 1000 Bytes

GC_HydrometricData

This project intend to provide an interface that can be used to extract the data from the web site https://eau.ec.gc.ca/.

Run with

  • python 2.7
  • python 3.4
  • python 3.6

Dependency

Usage

The main interface is HydrometricDataInterface located in HydrometricData.py

from HydrometricData import HydrometricDataInterface
webStation = HydrometricDataInterface()

# getting station for the Quebec Province
webStation.getStationsForProvince('Quebec')

stationName = "01BF004"

# getting station info
print(webStation.getStationInfo(stationName))

# getting station coordinates 
print(webStation.getStationCoordinates(stationName))

# getting station data

webStation.getHistoricalStation(stationName).getData()
print(webStation.getHistoricalStation(stationName).data)