scrape_sbc: scrape_sbc

Description Usage Arguments Details Value Examples

View source: R/realscrape.R

Description

Scrape house sales data from a list of suburbs by council.

Usage

1
scrape_sbc(sbc, B = 1, P = 12, noisy = TRUE)

Arguments

sbc

A list of suburbs by council in the same format as the example list STA3LM_suburbs_by_council

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).

noisy

Logical. If TRUE then the function prints a message each time a suburb is completed.

Details

This function relies on a loop which repeatedly calls scrape_suburb.

Value

A tibble of house sales data.

Examples

1
2
3
4
5
View( STA3LM_suburbs_by_council )

# Normally we would set P = 12 (12 ad pages per board)
data <- scrape_sbc( STA3LM_suburbs_by_council, B = 1, P = 1 )
data_clean <- tidyr::drop_na( data )

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