README.md

mpscraper: A Marktplaats scraper for R

Build Status

This R package enables you to web scrape an individual marktplaats advertisement or all advertisements related to a search query. If you want to analyse your own advertisements, you could consider the official Marktplaats API.

Installation

devtools::install_github("timvink/mpscraper")

Features

Example use case

# Get all advertisements for a certain search query
url <- "http://www.marktplaats.nl/z/telecommunicatie/mobiele-telefoons-apple-iphone/iphone.html?query=iphone&categoryId=1953&sortBy=SortIndex"
ads <- list_advertisements(url, advertisement_type = "individuals", max_pages = 5)

# Build a dataset with the details from all the adds
all_ad_data <- scrape_ads(ads$ad_id)

Note that you can find the URL of an ad using the id: http://www.marktplaats.nl/<id>.

List of advertisement features returned

Contribute

Some ideas:



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