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
- Host: GitHub
- URL: https://github.com/robtec/ppr-go
- Owner: robtec
- Created: 2020-05-24T17:02:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-02T16:30:30.000Z (almost 4 years ago)
- Last Synced: 2024-06-21T03:13:24.065Z (almost 2 years ago)
- Topics: cli, go, gocolly
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Property Price Register CLI (unoffical)
[](https://goreportcard.com/report/github.com/robtec/ppr-go)

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"
}]
}
```