[nzlug] Post Codes

Simon Green simon at simongreen.net
Fri Sep 1 08:25:07 NZST 2006


On 01/09/06, ronw at paradise.net.nz <ronw at paradise.net.nz> wrote:
> NZ Post have finally issued the new postcodes in a downloadabel pdf format. I
> would like to be able to scrape the pdf file and get data into a database.
> Anyone have any ideas on how best to rip the data out of the pdf and into a
> file. The pdf is 555 pages long and of course there is other rubbish on the page
> like headers etc.

NZ Post also release the data in CSV format[1]. I would strongly
recommend that you use that instead of attempting to scrape the pdf
file. You are only asking for trouble (and way much more work for no
gain).

  -- simon

[1] or at least they did under the old system. Pretty sure things
won't have changed with the new postcodes.




More information about the NZLUG mailing list