search_for_sale: Get search results for for 'satilik'

Description Usage Arguments Value Examples

Description

Get search results for for 'satilik'

Usage

1
2
3
4
search_for_sale(page_url = NULL, address_city = NULL,
  address_town = NULL, address_district = NULL,
  address_quarter = NULL, pagingSize = 50, pagingOffset = 0,
  viewType = "Classic", sorting = "date_desc", print_steps = F)

Arguments

page_url

Full url to be retrieved page, by default obtained by other params

address_city

int vector city ids

address_town

int vector towns ids

address_district

int vector district ids

address_quarter

int vector quarter ids

pagingSize

one length int, Nb of results to be shown in each page. 20 or 50

pagingOffset

one length int, offset of results to start with

viewType

one length character, Only 'Classic' supported for now

sorting

one length character

print_steps

Print out proress

Value

list of following elements: content: html document of search results, can be written in disk visk xml2::write_xml() meta: list of meta data of search prev_page_url: full url to next page in the search , NA if not any next_page_url: full url to previous page in the search, NA if not any url: url of the page hashed_url: md5 has of url which might be used as key

Examples

1
2
3
4
5
6
# Get search results in Istanbul, Eyup
ex <- search_for_sale(address_city = 34, address_town = 421)
# Get search results in next page
ex2 <- search_for_sale(page_url = ex$next_page_url)
# Parse classifieds to data frame
classifieds <- parse_classifieds(ex$content)

bhakyuz/sahibinden documentation built on June 12, 2019, 2:28 p.m.