Skip to content

Automatically download the current months price-paid data sheet for housing from the gov.uk wesbite, convert to sqlite db and spin up a datasette container to serve the content

ouchiko/price-paid-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Price Paid > Datasette API

Using Simon Willison's datasette this process brings in the latest price paid for housing from the data.gov.uk site, converts to (sqlite) .db file and then boots a Docker instance running datasette.

Simon has setup the complete process so it's great - this is simply a test to see about auto-importing data, converting and then running a container.

https://github.com/simonw/datasette

Process

Installation

Builds each instance.

docker-compose build getdata
docker-compose build datasette
Running

We want to run getdata first, to download and prepare the conversion of the .db file. Once that's complete we boot up datasette. See docker-compose.yml for more information. I also removed the datasette call from docker and made that part of compose.

docker-compose up getdata && docker-compose up datasette

Now you should be able to visit

http://localhost/

About

Automatically download the current months price-paid data sheet for housing from the gov.uk wesbite, convert to sqlite db and spin up a datasette container to serve the content

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages