Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Open HK weather data project

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 hk0data
Octocat-spinner-32 hk0weather
Octocat-spinner-32 .gitignore
Octocat-spinner-32 scrapy.cfg


hk0weather is a open source project to scrap useful weather data from Hong Kong Observatory, it is written in python.

With scrapy web scraping framework and regular expression library, collected weather data can be converted to machine-readable formats (eg. JSON).

With django web framework, collected weather data will be stored in django, and accessible through django web admin UI. sqlite3 is default database file format, and it can be connected with MySQL and other database systems supported by django.

Source code is available on github.

Installation Example

$ virtualenv hk0weatherenv
$ source hk0weatherenv/bin/activate
$ pip install scrapy
$ pip install django
$ git clone
$ cd hk0data
$ python syncdb
$ python runserver &
$ cd ..
$ cd hk0weather

To scrap Current Weather Report from HKO website to json format open weather data. (data won't be stored to django)
$ scrapy crawl currwx -t json -o testresult

To scrap Regional Weather Data from HKO website to json format open weather data, and stored in django.
$ scrapy crawl regionalwx -t json -o regionalwx.json

Django web admin UI can be access at:

Mailing List

For general discussion of hk0weather project, please go to hk0weather google group. Please feel freely to ask questions or post your suggestions / comments.!forum/hk0weather


I introduced this project on my following Chinese blog.

And I also presented it at BarCampHK 2013 and a local open source workshop, hereby is my slide.

Something went wrong with that request. Please try again.