Skip to content

markroepke/flxr

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
man
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

flxr: An R package for scraping movie data

Build Status

This package allows users to easily scrape movie data from the internet. By only supplying a movie title, users can currently retrieve the movie description, director, lead cast, genre, runtime, IMDB user rating, and Metacritic rating. The package can currently be installed using the following code:

devtools::install_github("markroepke/flxr")

Here is an example of flxr in use:

# Get movie director
flx_mov_director("The Godfather")
#> Returning movie director for The Godfather:
#> [1] "Francis Ford Coppola"

The other functions in flxr are:

  • flx_mov_desc()
  • flx_mov_genre()
  • flx_mov_lead_cast()
  • flx_mov_mc_rtg()
  • flx_mov_runtime()
  • flx_mov_user_rtg()

There is also wrapper function, flx_mov_details(), to easily run all flxr functions:

# Get movie information
flx_mov_details("The Godfather")
#> # A tibble: 1 x 8
#>   movie  description          genre director lead_cast runtime user_rating
#>   <chr>  <chr>                <chr> <chr>    <list>      <dbl>       <dbl>
#> 1 The G~ The aging patriarch~ Crime Francis~ <chr [3]>    175.        9.20
#> # ... with 1 more variable: metacritic_rating <dbl>

About

An R package for scraping movie data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages