csfd_scraper | R Documentation |
Create a new <csfd_scraper>
object. This is mostly for debugging purposes,
normally it is best to use csfd_fetch()
.
csfd_scraper(resp)
resp |
An object of class httr2::response. |
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.
A <csfd_scraper>
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.