scrape_suburb: scrape_suburb

Description Usage Arguments Value Examples

View source: R/realscrape.R

Description

Scrape house sales data from a suburb.

Usage

1
scrape_suburb(suburb, postcode, B = 1, P = 12)

Arguments

suburb

A character string giving the suburb name with empty spaces replaced with '+', and first letter of each word capitalised.

postcode

A character string giving the 4 digit suburb postcode.

B

Number of boards (i.e., pages of ads) to scape per suburb.

P

Number of ad pages per board (determined by inspecting the AU House Prices website).

Value

A tibble containing house sales data with missing values represented by NA.

Examples

1
2
# Normally we would set P = 12 (12 ad pages per board)
data <- scrape_suburb( suburb = "Bayswater+North", postcode = "3153", P = 1 )

frycast/realscrape documentation built on July 6, 2020, 10:48 a.m.