mevers / allhomes Goto Github PK
View Code? Open in Web Editor NEWR package to obtain past sales data from allhomes.com.au
Home Page: https://mevers.github.io/allhomes/
License: Other
R package to obtain past sales data from allhomes.com.au
Home Page: https://mevers.github.io/allhomes/
License: Other
This returns an empty tibble
.
get_past_sales_data("Swinger Hill, ACT", 2020)
#[1] "https://www.allhomes.com.au/svc/locality/searchallbyname?st=ACT&n=swinger-hill"
## A tibble: 0 × 6
## … with 6 variables: division <chr>, state <chr>, postcode <chr>, value <int>, year <dbl>, data <lgl>
## ℹ Use `colnames()` to see all variable names
This works
get_ah_division_ids("Swinger Hill, ACT")
#[1] "https://www.allhomes.com.au/svc/locality/searchallbyname?st=ACT&n=swinger-hill"
# division state postcode value
#1 Swinger Hill ACT 2606 18009
This returns NULL
extract_past_sales_data("Swinger Hill", 18009, 2020)
# NULL
This returns a tibble
extract_past_sales_data("swinger-hill", 18009, 2020)
#[2022-07-26 17:23:13] Parsing data for swinger-hill, 2020
# address bedrooms bathrooms ensuites garages carports contract_date transfer_date list_date price block_size
#1 8 Oldham Court 3 2 NA 2 0 20/01/2020 NA 19/12/2019 810000 0
#2 21 Jewell Close 2 1 NA 1 1 05/12/2020 NA 13/11/2020 592000 0
#3 7 Sulman Place 2 1 NA 2 0 07/11/2020 NA 15/10/2020 580000 190
#4 4 Hallen Close 2 1 NA 0 1 16/10/2020 NA 01/10/2020 540000 847
#...
Need to have consistent processing of suburbs with whitespaces/special characters.
The following gives an error
get_past_sales_data("Arboretum, ACT", 2022)
#[2022-08-20 01:18:11] Looking up division ID for suburb='Arboretum, ACT'...
#[2022-08-20 01:18:11] URL: https://www.allhomes.com.au/svc/locality/searchallbyname?st=ACT&n=arboretum
#Error in `dplyr::mutate()`:
#! Problem while computing `data = purrr::pmap(list(.data$value, .data$year, .env$quiet), extract_past_sales_data)`.
#Caused by error in `.data$value`:
#! Column `value` not found in `.data`.
#Run `rlang::last_error()` to see where the error occurred.
Expected behaviour:
A warning/error that the suburb could not be found and/or a zero-row tibble
/data.frame
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.