scraper: Function to scrape housing data from a given craiglist url

Description Usage Arguments Value Examples

View source: R/scraper.R

Description

Function to scrape housing data from a given craiglist url

Usage

1
scraper(url, online = FALSE)

Arguments

url

The given Craiglist url to scrape the data from.

online

Whether the data is scraped directly from the url online (default = False). False means the data is scraped from a local HTML file.

Value

tibble A tibble containing listing information such as listing url, price, and house type

Examples

1
2
url <- "https://vancouver.craigslist.org/d/apartments-housing-for-rent/search/apa"
scraper(url = url, online = FALSE)

UBC-MDS/rhousehunter documentation built on April 6, 2021, 7:54 a.m.