An open API service indexing awesome lists of open source software.

https://github.com/robtec/ppr-go

CLI to fetch sales from Property Price Register IE https://www.propertypriceregister.ie
https://github.com/robtec/ppr-go

cli go gocolly

Last synced: 5 months ago
JSON representation

CLI to fetch sales from Property Price Register IE https://www.propertypriceregister.ie

Awesome Lists containing this project

README

          

# Property Price Register CLI (unoffical)

[![Go Report Card](https://goreportcard.com/badge/github.com/robtec/ppr-go)](https://goreportcard.com/report/github.com/robtec/ppr-go)
![ci](https://github.com/robtec/ppr-go/workflows/ci/badge.svg)

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](https://github.com/robtec/ppr-go/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"
}]
}
```