csfd_scraper: Initialize A New Scraper

View source: R/scraper.R

csfd_scraperR Documentation

Initialize A New Scraper

Description

Create a new <csfd_scraper> object. This is mostly for debugging purposes, normally it is best to use csfd_fetch().

Usage

csfd_scraper(resp)

Arguments

resp

An object of class httr2::response.

Details

The scraper object includes a set of scraper functions, each of which returns a data frame. Trigger scraping by indexing into the object as you would into a list.

The selection of scraper functions will vary, depending on what page you have fetched. For example, user pages don't have tags but film pages often do. As a result, tags scraper will be available if you downloaded a /film page, but not if you downloaded an /uzivatel page.

A scraper may return a data frame with no rows. For example, while appropriate for films, tags may still be missing even from a film page, if no tag has been added yet to that particular film.

Value

A <csfd_scraper>.


jchrom/csfd documentation built on Oct. 26, 2022, 10:19 p.m.