jamiewildehk / hkoscraper

Obtaining historical weather data form HKO by scraping their site.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hkoscraper

Project to give programatic access to archived HKO weather warning data

Written by @jamiewildehk

Currently this is only scraping the thunderstorm warnings, though it could easily be extended to hot/cold weather warnings and typhoon warnings.

API

Only one end point now: /hko/ts/[date:YYYYMMDD]

Implementation

The scraping is performed by Yahoo Pipes, using the YQL defined in the YQL Query I wrote

Implemented as an express application for heroku or own hosting. Similar code could be used client side.

{
  "warning": {
    "warnings": 1,
    "totalDuration": 60,
    "details": [
      {
        "from": "2014-07-14T21:00:00.000Z",
        "to": "2014-07-14T22:00:00.000Z"
      }
    ]
  }
}

About

Obtaining historical weather data form HKO by scraping their site.


Languages

Language:JavaScript 95.5%Language:CSS 4.5%