Package 'imdb'

Title: Download IMDB Series Information Into a Dataframe
Description: Download movie and series information using the open movie database http://www.omdbapi.com and return tidy results. To pull relevant information from the API you have to get a key from the omdb website.
Authors: Roel M. Hogervorst [aut, cre] , Josh Yazman [ctb]
Maintainer: Roel M. Hogervorst <[email protected]>
License: MIT + file LICENSE
Version: 0.2.0
Built: 2024-10-03 02:57:51 UTC
Source: https://github.com/RMHogervorst/imdb

Help Index


Add your api key to .Renviron

Description

This is a convenient function that writes your key to the .Renviron file that is read in at start. You dont have to give the key in, if you use keep the key NULL it will ask for it in the commandline (keeping it out of the logs and .history).

Usage

add_key_to_renviron(key = NULL, location = "~/.Renviron")

Arguments

key

keep NULL to search or add manualy

location

what file do you want to write to? defaults to ~/.Renviron

Details

Of course you can also go to the file and add it yourself. the file should have a line that reads: OMDB_KEY=key

where you replace your key with your key.


Find or define API key for omdb

Description

This function is not for direct use.

Usage

api_key(key = NULL)

Arguments

key

"quoted" key or by default searches in .Renviron en Sys.setenv

Value

key


IMDB information enricher.

Description

This function downloads episode information into a dataframe. Use it to create a dataframe with extra information about every epidode. it downloads runtime, director, writer, actors, plot and imdb votes.

Usage

enrichIMDB(df, key = NULL)

Arguments

df

Name of dataframe you want to add info to. NEEDS an imdbID variable.

key

Enter your API key. If you don't have one yet, you can obtain one here: http://www.omdbapi.com/apikey.aspx

Examples

## Not run: 
enrichIMDB("IMDB")

## End(Not run)

Download information about a movie from imdb

Description

Download information about a movie from imdb

Usage

imdbMovies(moviename, key = NULL)

Arguments

moviename

Type the name of the movie

key

Enter your API key. If you don't have one yet, you can obtain one here: http://www.omdbapi.com/apikey.aspx


IMDB information downloader for series.

Description

This function downloads series information into a dataframe.

Usage

imdbSeries(seriesname, seasons = 1, key = NULL)

Arguments

seriesname

Give the name of the series for example "House MD"

seasons

Information about hat seasons do you want to download? Defaults to 1.

key

Enter your API key. If you don't have one yet, you can obtain one here: http://www.omdbapi.com/apikey.aspx

Examples

## Not run: 
imdbSeries("House MD", 1:2)

## End(Not run)

Download information about a title from imdb by imdb ID

Description

Download information about a title from imdb by imdb ID

Usage

imdbTitleId(titleid, key = NULL)

Arguments

titleid

The id, f.i.: "tt0120382"

key

Enter your API key. If you don't have one yet, you can obtain one here: http://www.omdbapi.com/apikey.aspx


ToS violation message

Description

It has come to my attention that the use of the omdbapi might violate the terms of service that imdb has set up. According to http://www.imdb.com/conditions scraping is forbidden. I did not scrape IMDB but since we are using the omdb-api, we sort of violate the terms of service indirectly. This is just a heads up.

Usage

ToS_message()

Details

If you would like to stop this message, add a line to your .Renviron file: IMDBTOGGLE = "off". If you do I presume you have read the message.