I am interested in seeing the NYT movie reviews for movies that were released in 2019. I am particularly interested in seeing how many of the movies that were reviewed, were ‘critic picks’.
library(jsonlite)
library(dplyr)
library(stringr)
library (ggplot2)
I identified the Movie API from the NYT developer site and got my API key for it. Since I am only interested in looking at the reviews for movies that were released in 2019, I modified the API to only include movies that had an opening date between 2019-01-01 to 2020-01-01.
url <- "https://api.nytimes.com/svc/movies/v2/reviews/search.json?opening-date=2019-01-01;2020-01-01"
key <- "OkVf8SLjqbsAbQAvVbiJBn6yRY7azROI"
addurl <- paste0(url, "&api-key=")
# fetched using json + key call
data <- fromJSON(paste0(addurl, key))
summary(data)
## Length Class Mode
## status 1 -none- character
## copyright 1 -none- character
## has_more 1 -none- logical
## num_results 1 -none- numeric
## results 11 data.frame list
df <- data$results
knitr:: kable (df)
| display_title | mpaa_rating | critics_pick | byline | headline | summary_short | publication_date | opening_date | date_updated | link | multimedia |
|---|---|---|---|---|---|---|---|---|---|---|
| The Devil Has a Name | R | 0 | Ben Kenigsberg | ‘The Devil Has a Name’ Review: A Little Guy Takes On Big Oil | A farmer sues an oil company in this well-meaning but muddled drama directed by Edward James Olmos. | 2020-10-15 | 2019-08-04 | 2020-10-15 11:04:07 | article | mediumThreeByTwo210 |
| The Cuban | 0 | Glenn Kenny | ‘The Cuban’ Review: Memories Lost and Reignited | Louis Gossett Jr. plays a musician with Alzheimer’s disease whose new nurse helps him reach back into his past. | 2020-07-30 | 2019-12-07 | 2020-07-30 11:04:04 | article | mediumThreeByTwo210 | |
| Spark | 0 | Ben Kenigsberg | ‘Spark’ and ‘The Observer’ Review: A Filmmaker’s Past, and China’s | A pair of documentaries serve as an introduction to Hu Jie, a documentarian whose films memorialize the horrors of the Mao era. | 2020-07-02 | 2019-12-31 | 2020-07-02 15:16:02 | article | mediumThreeByTwo210 | |
| Unsettled: Seeking Refuge in America | 0 | Ben Kenigsberg | ‘Unsettled: Seeking Refuge in America’ Review: Embracing a New Home | A documentary on L.G.B.T.Q. refugees becomes progressively engaging as its subjects’ paths diverge. | 2020-06-29 | 2019-04-01 | 2020-06-29 20:02:02 | article | mediumThreeByTwo210 | |
| Parkland Rising | 0 | Teo Bugbee | ‘Parkland Rising’ Review: A Close-Up on Activism After a Tragedy | A documentary profiles students and parents who became organizers after the school shooting, but doesn’t provide a lot of fresh insight. | 2020-06-04 | 2019-10-04 | 2020-06-04 11:04:03 | article | mediumThreeByTwo210 | |
| Citizen K | 0 | Ben Kenigsberg | ‘Citizen K’ Review: Trying to Pin Down a Russian Oligarch | A detailed documentary on Mikhail Khodorkovsky proves slightly unsatisfying. | 2020-01-14 | 2019-11-22 | 2020-02-12 17:44:01 | article | mediumThreeByTwo210 | |
| Ghost Stories | 0 | Bilal Qureshi | ‘Ghost Stories’ Review: Bollywood Aims for Frights | With this Netflix anthology, four directors from Indian cinema draw horror from a country’s lived reality. | 2020-01-02 | 2019-12-31 | 2020-01-02 12:04:02 | article | mediumThreeByTwo210 | |
| One Cut of the Dead | Not Rated | 1 | Elisabeth Vincentelli | ‘One Cut of the Dead’ Review: A Fresh Take on the Zombie Flick | A one-take movie stunt is justified in the Japanese director Shinichiro Ueda’s fast and furious backstage comedy. | 2019-12-25 | 2019-09-24 | 2019-12-25 14:04:02 | article | mediumThreeByTwo210 |
| Clemency | R | 0 | Manohla Dargis | ‘Clemency’ Review: No Place for Mercy | A tremendous Alfre Woodard plays a warden at a prison whose world is upended by the fate of death-row inmates. | 2019-12-25 | 2019-12-27 | 2020-01-17 17:44:02 | article | mediumThreeByTwo210 |
| The 21st Annual Animation Show of Shows | 0 | Glenn Kenny | Review: Animated Shorts of Every Stripe and Feather | Find a pen-and-ink dog, stop-motion girl and a C.G.I. fox in “The 21st Annual Animation Show of Shows.” | 2019-12-24 | 2019-12-25 | 2020-01-13 17:44:01 | article | mediumThreeByTwo210 | |
| What She Said: The Art of Pauline Kael | 0 | Jeannette Catsoulis | ‘What She Said’ Review: Pauline Kael, Screen Queen | Kael’s distinctively passionate voice, competing with movie fragments, is disastrously muffled, as are those of her admirers and detractors. | 2019-12-24 | 2019-12-25 | 2020-01-15 17:44:02 | article | mediumThreeByTwo210 | |
| 1917 | R | 0 | Manohla Dargis | ‘1917’ Review: Paths of Technical Glory | Sam Mendes directs this visually extravagant drama about young British soldiers on a perilous mission in World War I. | 2019-12-24 | 2019-12-25 | 2020-01-24 17:44:02 | article | mediumThreeByTwo210 |
| Spies in Disguise | PG | 0 | Glenn Kenny | ‘Spies in Disguise’ Review: Smug Agent Meets Gadget Geek | Will Smith and Tom Holland are an action odd couple in this animated comedy. | 2019-12-24 | 2019-12-25 | 2020-01-24 17:44:02 | article | mediumThreeByTwo210 |
| The Song of Names | PG-13 | 0 | Ben Kenigsberg | ‘The Song of Names’ Review: A Prodigy, a War and a Mystery | A young violinist goes missing in London in 1951. The eventual answer as to why is powerful. | 2019-12-24 | 2019-12-25 | 2020-01-17 17:44:02 | article | mediumThreeByTwo210 |
| Little Women | PG | 1 | A.O. Scott | ‘Little Women’ Review: This Movie Is Big | Greta Gerwig refreshes a literary classic with the help of a dazzling cast that includes Saoirse Ronan, Florence Pugh, Laura Dern and Meryl Streep. | 2019-12-23 | 2019-12-25 | 2020-01-23 17:44:01 | article | mediumThreeByTwo210 |
| Dabangg 3 | 0 | Rachel Saltz | ‘Dabangg 3’ Review: A Hero From the School of Knock ’em Hard | In this Bollywood action flick, Salman Khan is a one-man wrecking crew. When not knocking heads, he dances. | 2019-12-22 | 2019-12-20 | 2020-01-09 17:44:01 | article | mediumThreeByTwo210 | |
| Invisible Life | R | 1 | Glenn Kenny | ‘Invisible Life’ Review: Sisterhood Is Stronger Than Patriarchy | Two sisters living in 1950s Brazil are kept apart by their father but can’t be spiritually separated. | 2019-12-19 | 2019-12-20 | 2020-01-19 17:44:02 | article | mediumThreeByTwo210 |
| Togo | PG | 0 | Jason Bailey | ‘Togo’ Review: A Man, His Dogs and a Very Bad Storm | Willem Dafoe stars in the latest addition to Disney’s sled dog canon. | 2019-12-19 | 2019-12-20 | 2019-12-19 12:04:02 | article | mediumThreeByTwo210 |
| She’s Missing | 0 | Jeannette Catsoulis | ‘She’s Missing’ Review: Gone Girl | An ominous atmosphere of impermanence marks this story of a New Mexico waitress who embarks on a perilous search for her vanished friend. | 2019-12-19 | 2019-12-20 | 2019-12-19 12:04:03 | article | mediumThreeByTwo210 | |
| Cats | PG | 0 | Manohla Dargis | ‘Cats’ Review: They Dance, They Sing, They Lick Their Digital Fur | Tom Hooper’s movie is not a catastrophe. It’s not even an epic hairball. | 2019-12-19 | 2019-12-20 | 2020-01-19 17:44:02 | article | mediumThreeByTwo210 |
I would like to clean the results up a bit and get rid of the last two columns,
df = subset(df,select=-c(link,multimedia))
nrow(df)
## [1] 20
The critics pick column indicates if a movie was picked by critics or not (1=yes,0=no).
critics_pick <- df %>%
filter(critics_pick==1)
nrow(critics_pick)
## [1] 3
Out of the 20 movies released in 2019 that were reviewed, only 3 were critic picks.
knitr::kable(critics_pick$display_title)
| x |
|---|
| One Cut of the Dead |
| Little Women |
| Invisible Life |