Skip to content

Obtaining historical weather data form HKO by scraping their site.

Notifications You must be signed in to change notification settings

jamiewildehk/hkoscraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published