Skip to content

robtec/ppr-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Property Price Register CLI (unoffical)

Go Report Card ci

This cli allows you to query the sales listed on https://www.propertypriceregister.ie

Installation

Using go

$ go get github.com/robtec/ppr-go/cmd/...

or head over to Releases

Usage

Use the following syntax to run ppr commands from your terminal window

$ ppr [options] address

available options

  • -c - county to search, default Galway
  • -yf - year from to search, default 2010
  • -yt - year to search to, default next year now.Year() + 1
  • -o - change output, options are json, default table

Example

$ ppr -c mayo -yf 2019 castlebar

+------------+--------------------------------+----------------+
|    DATE    |            ADDRESS             |     PRICE      |
+------------+--------------------------------+----------------+
| 20/12/2019 | DUMMY, CASTLEBAR, MAYO         | €45,500.00     |
+------------+--------------------------------+----------------+
| 19/12/2019 | LANE, CASTLEBAR, MAYO          | €321,000.00    |
+------------+--------------------------------+----------------+
| 17/12/2019 | SPRINGFIELD, CASTLEBAR,        | €543,000.00    |
|            | MAYO                           |                |
+------------+--------------------------------+----------------+
| 17/12/2019 | MICKY MOUSE DRIVE, CASTLEBAR   | €99,000.00     |
+------------+--------------------------------+----------------+
| 13/12/2019 | 123 FAKE ROAD, CASTLEBAR, CO   | €75,000.00     |
|            | MAYO                           |                |
+------------+--------------------------------+----------------+
# real addresses/prices omitted for privacy
...

JSON output

$ ppr -o json -c mayo -yf 2019 castlebar

{
    "sales": [
        {
            "date": "20/12/2019",
            "price": "€45,500.00",
            "address": "DUMMY, CASTLEBAR, MAYO "
        },
        {
            "date": "19/12/2019",
            "price": "€321,000.00",
            "address": "LANE, CASTLEBAR, MAYO"
        },
        {
            "date": "17/12/2019",
            "price": "€543,000.00",
            "address": "SPRINGFIELD, CASTLEBAR, MAYO"
        },
        {
            "date": "17/12/2019",
            "price": "€99,000.00",
            "address": "MICKY MOUSE DRIVE, CASTLEBAR"
        },
        {
            "date": "13/12/2019",
            "price": "€75,000.00",
            "address": "123 FAKE ROAD, CASTLEBAR, CO MAYO"
        }]
}