/
README.Rmd
49 lines (37 loc) · 1.23 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
output:
md_document:
variant: markdown_github
---
```{r echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
# flxr: An R package for scraping movie data <img src="tools/flxr.png" align="right" width="120" height="139" />
[![Build Status](https://travis-ci.org/markroepke/flxr.svg?branch=master)](https://travis-ci.org/markroepke/flxr)
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:
```{r eval = FALSE}
devtools::install_github("markroepke/flxr")
```
```{r echo = FALSE}
library(flxr)
```
Here is an example of `flxr` in use:
```{r}
# Get movie director
flx_mov_director("The Godfather")
```
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:
```{r}
# Get movie information
flx_mov_details("The Godfather")
```