read_details: Read Metadata of Movie(s)

View source: R/read_details.R

read_detailsR Documentation

Read Metadata of Movie(s)

Description

This function reads YAML files with movie(s) metadata stored by the function get_details()

Usage

read_details(path = ".", imdb_id = NULL, print = TRUE)

Arguments

path

The folder containing YAML files (or the root project).

imdb_id

(optional) The IMDb ID(s) of the movie(s).

print

A boolean. If TRUE (default), movie informations are printed (if one single IMDb ID is required).

Value

A data frame with:

  • imdbid: the IMDb ID of the movie

  • type: the category (e.g. movie)

  • title: the movie title

  • year: the year of release

  • runtime: the movie runtime (in minutes)

  • director: a vector of directors

  • writer: a vector of writers

  • actors: a vector of main actors

  • genre: a vector of genres

  • plot: a short plot of the movie

  • language: a vector of spoken languages

  • country: a vector of the countries

  • imdbrating: the IMDb rating (in date of the request)

  • slug: a unique identifier (titre + year)

Examples

## Not run: 
x <- read_details()
x <- read_details(imdb_id = "tt2278388", print = TRUE)
x <- read_details(imdb_id = c("tt2278388", "tt0362270"))

## End(Not run)

inSileco/omdbr documentation built on Feb. 12, 2024, 9:34 a.m.