fetch_ratings: Fetch IMDB ratings for all South Park episodes.

Description Usage Arguments Details Value

Description

Downloads and parses basic information and ratings about every South Park episode. It uses the only official way that allows you to get data directly from IMDB - https://datasets.imdbws.com/.

Usage

1
2
fetch_ratings(force_download = FALSE, make_rds = TRUE,
  delete_files = FALSE)

Arguments

force_download

If TRUE (default FALSE), download new IMDB files even if there are cached files.

make_rds

If TRUE (default TRUE), automatically saves fetched and parsed data to ratings.rds in a current working directory.

delete_files

If TRUE (default FALSE), deletes downloaded files after processing.

Details

The function downloads, parses and joins three of these files: title.episode.tsv.gz, title.basics.tsv.gz and title.ratings.tsv.gz.

Value

Data frame with following columns:

episode_imdb_id

IMDB ID that identifies an episode, movie or TV show.

season_number

Season number.

season_episode_number

Episode number in a season.

episode_name

Name of the episode.

air_date

Year when the episode aired.

user_rating

Weighted average of user ratings.

user_votes

Number of user votes.


pdrhlik/southparkr documentation built on May 8, 2019, 1:49 p.m.