list_advertisements: Lists the advertisements listed for a given search url

Description Usage Arguments Value Examples

Description

Lists the advertisements listed for a given search url

Usage

1
2
list_advertisements(url, advertisement_type = c("both", "individuals",
  "companies"), max_pages = Inf)

Arguments

url

The HTTP URL of a marktplace search page page.

advertisement_type

Choose which type of advertisements to would like to select

max_pages

limit the number of pages webscrape. Useful for testing. Default is all pages.

Value

a data frame with title, url and ID of advertisements

Examples

1
2
3
4
5
## Not run: 
url <- "http://www.marktplaats.nl/z/telecommunicatie/mobiele-telefoons-apple-iphone/iphone.html?query=iphone&categoryId=1953&sortBy=SortIndex"
list_advertisements(url, advertisement_type = "individuals", max_pages = 5)

## End(Not run)

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