get_base_url: get_base_url

Description Usage Arguments Value

View source: R/get_base_url-internal.R

Description

Create the base url based on supplied location data and desired search type.

Usage

1
get_base_url(location, area, type = "apa")

Arguments

location

The general location of your search (e.g. "Seattle"). This is used as the craigslist subdomain, (e.g. "seattle.craigslist.org).

area

The specific area of your search (e.g. "tacoma"). This is used to refine the search.

type

What type of thing you want to look up on craiglist. Currently only apartment searches are available. Default is apa for "apartment".

Value

base_url A character string containing the base url upon which queries will be added.


adletaw/craigr documentation built on Feb. 21, 2020, 10:14 p.m.