A small package of utilities written in Go for fetching, parsing and storing Data.gov.uk datasets into a Posgresql database.
Make sure you have a working Go environment and a database to store the information.
The tools make the required database tables if they don't exist.
./datagovuk-loader [DataLoader]
Variable | Purpose |
---|---|
DB_HOST | Database host, default: localhost |
DB_USER | Database user, default: current user |
DB_PASSWORD | Database user's password, optional |
DB_NAME | Database name, default: datagovuk |
Identifier | Source | Database Tables |
---|---|---|
postcode | OpenDataCommunities.org | post_code_areas, post_code_districts, post_code_sectors, post_code_units |
school | EduBase, Gov.uk | local_authorities, schools, school_key_stage_2s |
- EduBase data is mirrored on Amazon S3 as the filename changes regularly and the old version removed. So a cached version is used to avoid code breaking every month or so.
- School performance data is likewise mirrored on Amazon S3 and covers the 2014-5 period currently.
Copyright 2016 Seyed Razavi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.