Code Monkey home page Code Monkey logo

tennis-courts-harvester's Introduction

Tennis Courts Harvester

This will download a cvs list of all tennis courts from tennis Australia. I want to be able to find a tennis court when travelling around Australia and access to the internet is limited.

I might add more countries in the future.

Requirements

  • ruby 1.9.3
  • nokogiri

Before you start

Go to the Australia Post website and register to download the australian postcode data file.

https://auspost.com.au/forms/postcode-data-registration.html

Australia Post will send an email with two links in it. Pick the postcode book extract.

Unzip the downloaded file and place it in some directory. The file name will be something like:

pc-book_20130703.csv

Usage

ruby harvest_courts.rb -f <pc-book-file.csv> -o output.csv

Vagrant

Running the script on a virtual machine powered by Vagrant.

git clone [email protected]:eggplantbr/tennis-courts-harvester.git
cd tennis-courts-harvester
vagrant box add precise64 http://files.vagrantup.com/precise64.box
vagrant up
vagrant ssh
cd /vagrant
ruby harvest_courts.rb -f <pc-book-file.csv> -o output.csv
exit
vagrant halt

tennis-courts-harvester's People

Contributors

eggplantbr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.