csfd_fetch | R Documentation |
Download a page from the Czech and Slovak Film Database (CSFD).
csfd_fetch(url, quiet = FALSE)
url |
A CSFD URL, incl. a partial one, e.g. |
quiet |
If This indicates whether the request is being executed or has been completed and with what status. It also prints out the response URL which may be different from the request URL, because the server always returns a complete URL rather than just the resource identifier. |
This function fetches HTML from a single URL. The resulting object contains a set of fields for scraping different parts of the page. For all available scrapers, see csfd_scraper_list.
Note that rate is throttled at 15 requests per minute.
An object of class csfd_scraper.
## Not run: # Partial URL works: trek79 <- csfd_fetch("/film/9834-star-trek-film/prehled/") trek79 # Even shorter: trek79 <- csfd_fetch("film/9834") trek79 # Extract data like you would extract elements from a list: trek79$details trek79$reviews trek79$ratings # Careful with TV show seasons, they have two different identifiers - you # want the second one. For example: # /film/68990-star-trek-hluboky-vesmir-devet/494010-serie-1/prehled/ ds9 <- csfd_fetch("film/494010") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.