
Note that a working version of chromedriver must be installed and the absolute Where station is a personal weather station (e.g., KCAJAMES3) and date is in theĪlternatively, each function below can be imported and used in a separate python > python scrape_wunderground.py STATION DATE """Module to scrape 5-min personal weather station data from Weather Underground. The full Python script is available here but is also included below.

Depending on the weather station, it may be possible to back-calculate to absolute pressure some manufacturers (e.g., Ambient Weather WS-2902) use a constant offset whereas others (e.g., Davis Vantage Pro2) perform a more complicated barometric pressure reduction using the station’s 12-hr temperature and humidity history.

WebDriver is an toolbox for natively running web browsers, so when you render a page with WebDriver, Weather Underground thinks a regular user is accessing their website and you can access the full source code. This is where Selenium WebDriver comes in. Weather Underground has a security policy that blocks automated requests from viewing data stored in each table. It’s possible to view tables of 5-min data from a single day – see this example from a station outside Crested Butte, Colorado – but if you try to scrape the http using something like Python’s requests library, the tables appear blank. Unfortunately, historical data are not easy to access. Weather Undergound stores data from over 250,000 personal weather stations across the world.
