get_advs_overview_from_page: Get info on all advs on a page

Description Usage Arguments Details Value

Description

get_advs_overview_from_page gets the info on all advertisments on a search results page.

Usage

1
get_advs_overview_from_page(page_url, filter_admarkt = TRUE, verbose = TRUE)

Arguments

page_url

String containing the marktplaats url, which corresponds to a single page with results of a search for advertisements.

filter_admarkt

Boolean indicating whether admarkt advertisements need to be filtered.

verbose

Boolean indicating whether information on the progress should be printed during execution.

Details

The function scrapes a specified marktplaats url corresponding to a search results page. For each advertisement on the page, the title and url are scraped and the advertisement id is extracted from the url. The results are combined into a data.frame and returned.

Value

a data.frame object, with columns 'title', 'url' and 'ad_id' and one row per advertisement.


timvink/mpscraper documentation built on May 31, 2019, 2:43 p.m.