New York Times Web API
About the Assignment
In the Assignment I created an API key for New York Times database to read articles. Amongst the numerous articles, I chose to request for the most viewed articles for the last seven days.The response was received as a JSON data which I converted into a dataframe.
Approach
I signed up with the New York Times and created an API key to enable me send a request to the New York Times server through the GET() function of the httr package and the response was saved in an object named article. The object was displayed to view its status, content-type, date and etc. The status was 200 and the content-type was in application/json format. The status and content information signified that there was a connection for the server to send the json formatted request. I displayed the header to have an overview of the article object. Then the unicode formatted content of the object was converted to a character vector with the content() function parsed with as argument equals text before parsing it the fromJSON() function. The fromJSON() function converts the json formatted content into a dataframe of articles, copyright, number of articles, and status.
Send Request to get most viewed articles for the last seven days and save the response in a variable
<-"https://api.nytimes.com/svc/mostpopular/v2/viewed/1.json?api-key=jsWenA4LsyGDPE3LOkNnt4kxlQbG1clD"
url_viewed <- GET(url_viewed) article
Display response
article
## Response [https://api.nytimes.com/svc/mostpopular/v2/viewed/1.json?api-key=jsWenA4LsyGDPE3LOkNnt4kxlQbG1clD]
## Date: 2021-10-24 23:03
## Status: 200
## Content-Type: application/json; charset=utf-8
## Size: 37.4 kB
<- article$headers
article_header article_header
## $date
## [1] "Sun, 24 Oct 2021 23:03:11 GMT"
##
## $`content-type`
## [1] "application/json; charset=utf-8"
##
## $`transfer-encoding`
## [1] "chunked"
##
## $connection
## [1] "keep-alive"
##
## $`cache-control`
## [1] "max-age=60"
##
## $`x-nyt-most-popular-values`
## [1] "VIEWED 1"
##
## $`x-request-id`
## [1] "1635116584580724074"
##
## $`content-encoding`
## [1] "gzip"
##
## $`x-cloud-trace-context`
## [1] "20a81bcc147744e63211b0405d12f8fd"
##
## $server
## [1] "Google Frontend"
##
## $`accept-ranges`
## [1] "bytes"
##
## $via
## [1] "1.1 varnish"
##
## $age
## [1] "6"
##
## $`x-served-by`
## [1] "cache-fty21352-FTY"
##
## $`x-cache`
## [1] "HIT"
##
## $`x-cache-hits`
## [1] "1"
##
## $`x-timer`
## [1] "S1635116591.091422,VS0,VE1"
##
## $vary
## [1] "Accept-Encoding"
##
## $`access-control-allow-origin`
## [1] "*"
##
## $`access-control-allow-headers`
## [1] "Accept, Content-Type, X-Forwarded-For, X-Prototype-Version, X-Requested-With"
##
## $`access-control-expose-headers`
## [1] "Content-Length, X-JSON"
##
## $`access-control-allow-methods`
## [1] "GET, OPTIONS"
##
## attr(,"class")
## [1] "insensitive" "list"
View the unicode
str(article$content)
## raw [1:37403] 7b 22 73 74 ...
Convert the unicode to character vector
<-content(article, as="text")
nyt_article#nyt_article
Parse the character vector into a fromJSON to convert it to a list
<-nyt_article %>% fromJSON
nyt_articlent_json#glimpse(nyt_articlent_json)
The glimpse() was called to unbundle the content of the nyt_articlent_json list to view its elements. The list contains four elements, namely-status, copyright, num_results and results dataframe.
status
$status nyt_articlent_json
## [1] "OK"
copyright
$copyright nyt_articlent_json
## [1] "Copyright (c) 2021 The New York Times Company. All Rights Reserved."
Number of observations
$num_results nyt_articlent_json
## [1] 20
Articles
<-nyt_articlent_json$results
samp_article
kbl(samp_article)%>%
kable_styling() %>% kable_paper("hover", full_width = F)
uri | url | id | asset_id | source | published_date | updated | section | subsection | nytdsection | adx_keywords | column | byline | type | title | abstract | des_facet | org_facet | per_facet | geo_facet | media | eta_id |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nyt://article/2d7a5168-11c2-5168-aea3-96ac42a2717e | https://www.nytimes.com/2021/10/21/us/alec-baldwin-shooting-rust-movie.html | 1e+14 | 1e+14 | New York Times | 2021-10-21 | 2021-10-23 19:08:48 | U.S. | u.s. | Movies;Deaths (Fatalities);Firearms;Baldwin, Alec;Hutchins, Halyna (1979-2021);Souza, Joel (1973- );Santa Fe (NM);New Mexico | NA | By Simon Romero, Julia Jacobs and Glenn Thrush | Article | Alec Baldwin Was Told Gun in Fatal Shooting on Set Was Safe, Officials Say | The actor was told a gun being used as a prop was safe before he fired it on the set of “Rust,” killing the film’s cinematographer and wounding its director, law enforcement officials said. | Movies , Deaths (Fatalities), Firearms | Baldwin, Alec , Hutchins, Halyna (1979-2021), Souza, Joel (1973- ) | Santa Fe (NM), New Mexico | image , photo , Alec Baldwin in the parking lot outside the sheriff’s office in Santa Fe, N.M., after he was questioned about the shooting on the set of the film “Rust” on Thursday., Jim Weber/Santa Fe New Mexican, via Associated Press , 1 , https://static01.nyt.com/images/2021/10/22/us/22baldwin-briefing-hp-promo1/22xp-newmexico2-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/22/us/22baldwin-briefing-hp-promo1/22baldwin-briefing-hp-promo1-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/10/22/us/22baldwin-briefing-hp-promo1/22baldwin-briefing-hp-promo1-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | ||
nyt://article/f018d7fe-518a-562b-ade0-7e5f1f247d6d | https://www.nytimes.com/2021/10/23/us/alec-baldwin-rust-shooting.html | 1e+14 | 1e+14 | New York Times | 2021-10-23 | 2021-10-24 12:31:50 | U.S. | u.s. | Firearms;Workplace Hazards and Violations;Movies;Accidents and Safety;Deaths (Fatalities);Baldwin, Alec;Hutchins, Halyna (1979-2021);Santa Fe (NM) | NA | By Simon Romero and Julia Jacobs | Article | Alec Baldwin Film Set Had Previous Accidental Gun Discharges, Crew Members Say | They expressed concerns over gun mishaps and working conditions just days before the shooting that killed the cinematographer Halyna Hutchins. | Firearms , Workplace Hazards and Violations, Movies , Accidents and Safety , Deaths (Fatalities) | Baldwin, Alec , Hutchins, Halyna (1979-2021) | Santa Fe (NM) | image , photo , A bouquet hangs outside the Bonanza Creek Film Ranch, where Alec Baldwin fatally shot the cinematographer Halyna Hutchins and wounded a director when he discharged a prop gun., Andres Leighton/Associated Press , 1 , https://static01.nyt.com/images/2021/10/23/multimedia/23baldwin-shooting-03/23baldwin-shooting-03-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/23/multimedia/23baldwin-shooting-03/merlin_196722828_73af05ea-20aa-4406-b98d-c739cf0ff91c-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/10/23/multimedia/23baldwin-shooting-03/merlin_196722828_73af05ea-20aa-4406-b98d-c739cf0ff91c-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | ||
nyt://article/4fdc5597-54ae-5b6a-bf11-4ab43c2be091 | https://www.nytimes.com/2021/10/23/sports/basketball/vanessa-bryant-helicopter-crash-lawsuit.html | 1e+14 | 1e+14 | New York Times | 2021-10-23 | 2021-10-24 12:29:34 | Sports | N.B.A. | sports | Suits and Litigation (Civil);Helicopters;Aviation Accidents, Safety and Disasters;Deaths (Fatalities);Bryant, Gianna (2006-20);Bryant, Kobe;Bryant, Vanessa (1982- );Villanueva, Alex (1963- );Los Angeles County Sheriff’s Department;Mamba Sports Academy;Los Angeles County (Calif) | NA | By Jonathan Abrams and Kevin Draper | Article | Vanessa Bryant, in Deposition, Describes Learning of Deaths of Kobe and Gianna | Bryant was being questioned by a lawyer defending Los Angeles County in her lawsuit about the sharing of photos of human remains from the helicopter crash that killed nine people. | Suits and Litigation (Civil) , Helicopters , Aviation Accidents, Safety and Disasters, Deaths (Fatalities) | Los Angeles County Sheriff’s Department, Mamba Sports Academy | Bryant, Gianna (2006-20) , Bryant, Kobe , Bryant, Vanessa (1982- ) , Villanueva, Alex (1963- ) | Los Angeles County (Calif) | image , photo , Vanessa Bryant, the widow of the Los Angeles Lakers superstar Kobe Bryant, said in a deposition that it took hours for her to learn officially that Kobe and their daughter Gianna had been killed in a helicopter crash., Maddie Meyer/Getty Images , 1 , https://static01.nyt.com/images/2021/10/23/sports/23nba-vanessa-bryant-1/23nba-vanessa-bryant-1-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/23/sports/23nba-vanessa-bryant-1/merlin_187816056_ad7a12a0-a18c-4c25-9993-843820d09714-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/10/23/sports/23nba-vanessa-bryant-1/merlin_187816056_ad7a12a0-a18c-4c25-9993-843820d09714-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 |
nyt://article/8a1be547-da1c-5d96-92dd-050d8a511570 | https://www.nytimes.com/2021/10/22/realestate/buy-nothing-facebook-group.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-22 14:16:44 | Real Estate | real estate | Social Media;Sustainable Living;Facebook Inc;Buy Nothing Project | NA | By Ronda Kaysen | Article | Inside the World of Buy Nothing, Where Dryer Lint Is a Hot Commodity | From medical supplies to half-eaten birthday cakes, Buy Nothing is fostering a quirky sense of community that is mostly fun and occasionally irritating. | Social Media , Sustainable Living | Facebook Inc , Buy Nothing Project | image , photo , , Trisha Krauss , 1 , https://static01.nyt.com/images/2021/10/24/realestate/22Rightathome-illo/22Rightathome-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/24/realestate/22Rightathome-illo/22Rightathome-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2021/10/24/realestate/22Rightathome-illo/22Rightathome-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | |||
nyt://article/558d0e2e-538e-50b1-a6ad-21ea4b0d058b | https://www.nytimes.com/2021/10/22/style/amanda-knox-ten-years-later.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-23 12:36:15 | Style | style | Content Type: Personal Profile;False Arrests, Convictions and Imprisonments;Murders, Attempted Murders and Homicides;Knox, Amanda;Kercher, Meredith;Italy;Perugia (Italy);Seattle (Wash) | NA | By Jessica Bennett | Article | Amanda Knox Was Exonerated. That Doesn’t Mean She’s Free. | Ten years after being cleared of a heinous crime, she is still trying to tell her story on her own terms. | Content Type: Personal Profile , False Arrests, Convictions and Imprisonments, Murders, Attempted Murders and Homicides | Knox, Amanda , Kercher, Meredith | Italy , Perugia (Italy), Seattle (Wash) | image , photo , “Your world is so limited when you’re a cardboard cutout,” said Ms. Knox, 34, with her daughter, Eureka., Ricardo Nagaoka for The New York Times , 1 , https://static01.nyt.com/images/2021/10/24/fashion/23KNOX1/23KNOX1-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/24/fashion/23KNOX1/23KNOX1-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/10/24/fashion/23KNOX1/23KNOX1-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | ||
nyt://article/5ffc8f14-3804-5dd6-8381-17163dd00c7c | https://www.nytimes.com/article/alec-baldwin-shooting-investigation.html | 1e+14 | 1e+14 | New York Times | 2021-10-23 | 2021-10-24 11:53:55 | Movies | movies | Baldwin, Alec;Souza, Joel (1973- );Hutchins, Halyna (1979-2021);Santa Fe (NM) | NA | By Maggie Astor, Glenn Thrush, Simon Romero and Julia Jacobs | Article | What We Know About the Fatal Shooting on Alec Baldwin’s New Mexico Movie Set | The authorities are investigating the death of the cinematographer Halyna Hutchins on the set of “Rust” in Santa Fe County. Here’s what we know. | Baldwin, Alec , Souza, Joel (1973- ) , Hutchins, Halyna (1979-2021) | Santa Fe (NM) | image , photo , A distraught Alec Baldwin in the parking lot outside the Santa Fe County Sheriff’s Office on Thursday after answering questions about the shooting., Jim Weber/Santa Fe New Mexican, via Associated Press , 1 , https://static01.nyt.com/images/2021/10/23/insider/23baldwin-A1/baldwin-road1-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/23/insider/23baldwin-A1/baldwin-road1-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/10/23/insider/23baldwin-A1/baldwin-road1-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | |||
nyt://article/76556aa8-8d91-5001-ab48-21db5cc03751 | https://www.nytimes.com/2021/10/22/movies/the-french-dispatch-wes-anderson.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-22 12:16:22 | Movies | movies | Movies;Actors and Actresses;Content Type: Personal Profile;Anderson, Wes;Balaban, Bob;Brody, Adrien;McDormand, Frances;Seydoux, Lea;Smith, Lois;Swinton, Tilda;Wright, Jeffrey (1965- ) | NA | By Melena Ryzik | Article | In the Company of Wes Anderson | What is it about the director that draws stars like Frances McDormand and Tilda Swinton again and again? There are many reasons, but the nightly feasts don’t hurt. | Movies , Actors and Actresses , Content Type: Personal Profile | Anderson, Wes , Balaban, Bob , Brody, Adrien , McDormand, Frances , Seydoux, Lea , Smith, Lois , Swinton, Tilda , Wright, Jeffrey (1965- ) | image , photo , , Mona Chalabi , 1 , https://static01.nyt.com/images/2021/10/24/arts/24dispatch-cast/24dispatch-cast-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/24/arts/24dispatch-cast/24dispatch-cast-mediumThreeByTwo210-v2.jpg, https://static01.nyt.com/images/2021/10/24/arts/24dispatch-cast/24dispatch-cast-mediumThreeByTwo440-v2.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | |||
nyt://article/c2479321-3896-5d4e-bdad-0208fe67962f | https://www.nytimes.com/2021/10/22/world/europe/needle-spiking-uk.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-23 12:31:23 | World | Europe | world | Hypodermic Needles and Syringes;Assaults;Women and Girls;Bars and Nightclubs;Nottingham (England);England;Great Britain | NA | By Megan Specia and Isabella Kwai | Article | ‘Needle Spiking’ of Women in Britain Stirs Alarm Over New Kind of Assault | Women are reporting being injected with syringes at crowded clubs in a horrifying variation of dropping pill into drinks. “This is a new depth,’’ said a former chief of police. | Hypodermic Needles and Syringes, Assaults , Women and Girls , Bars and Nightclubs | Nottingham (England), England , Great Britain | image , photo , Young revelers lining up outside of a popular Nottingham bar and lounge on Wednesday. , Mary Turner for The New York Times , 1 , https://static01.nyt.com/images/2021/10/22/world/00uk-injections-01/00uk-injections-01-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/22/world/00uk-injections-01/00uk-injections-01-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2021/10/22/world/00uk-injections-01/00uk-injections-01-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | ||
nyt://article/895353e9-e863-5ab4-973d-db195a3cce82 | https://www.nytimes.com/2021/10/22/style/princess-francois-andy-estevez-wedding.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-22 18:33:04 | Style | style | Weddings and Engagements;Brooklyn (NYC) | NA | By Tammy La Gorce | Article | A ‘Royal’ Wedding in Brooklyn | Princess Francois and Andy Estevez, both educators, had each resigned themselves to romantic disappointment — until they met four years ago. | Weddings and Engagements | Brooklyn (NYC) | image , photo , Andy Estevez and Princess Francois were married at Transfiguration Roman Catholic Church in Williamsburg, Brooklyn, on Sept. 5, more than four years after they first connected on the dating app Coffee Meets Bagel., Amr Alfiky for The New York Times , 1 , https://static01.nyt.com/images/2021/10/24/fashion/22Vows-Princess1/22Vows-Princess1-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/24/fashion/22Vows-Princess1/22Vows-Princess1-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/10/24/fashion/22Vows-Princess1/22Vows-Princess1-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | |||
nyt://article/0652f20a-3815-51c5-9be3-c4e32bde4623 | https://www.nytimes.com/2021/10/23/opinion/queen-elizabeth-britain.html | 1e+14 | 1e+14 | New York Times | 2021-10-23 | 2021-10-24 13:56:49 | Opinion | opinion | Royal Families;Politics and Government;Elizabeth II, Queen of Great Britain;Great Britain | NA | By Serge Schmemann | Article | Queen Elizabeth Doesn’t Take Sick Days Lightly | There’s a reason that, in an era when old age and hereditary privilege are largely out of vogue, Queen Elizabeth is still held in high regard. | Royal Families , Politics and Government | Elizabeth II, Queen of Great Britain | Great Britain | image , photo , , Max Mumby/Indigo/Getty Images , 1 , https://static01.nyt.com/images/2021/10/25/opinion/23schmemann1/23schmemann1-thumbStandard-v3.jpg , https://static01.nyt.com/images/2021/10/25/opinion/23schmemann1/23schmemann1-mediumThreeByTwo210-v3.jpg, https://static01.nyt.com/images/2021/10/25/opinion/23schmemann1/23schmemann1-mediumThreeByTwo440-v3.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | ||
nyt://article/2b5cd480-d484-56c3-89a4-fe127a4c29d4 | https://www.nytimes.com/2021/10/22/us/politics/maryland-counties-west-virginia-request.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-23 23:54:33 | U.S. | Politics | u.s. | Politics and Government;State Legislatures;States (US);Secession and Independence Movements;Republican Party;Maryland;West Virginia;Garrett County (Md);Allegany County (Md);Washington County (Md) | NA | By Michael Levenson | Article | Bye, Maryland? Lawmakers in 3 Counties Float a Plan to Secede From the State. | The proposal to join West Virginia seems destined to go nowhere. But it has tapped into deep-seated feelings of alienation in western Maryland, a mountainous panhandle wedged against the Mason-Dixon line. | Politics and Government , State Legislatures , States (US) , Secession and Independence Movements | Republican Party | Maryland , West Virginia , Garrett County (Md) , Allegany County (Md) , Washington County (Md) | image , photo , Youghiogheny River in Friendsville, in Garrett County, Maryland, on the western end of the state., J. Stephen Conn, via Flickr , 1 , https://static01.nyt.com/images/2021/10/21/us/21xp-maryland/21xp-maryland-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/21/us/21xp-maryland/21xp-maryland-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2021/10/21/us/21xp-maryland/21xp-maryland-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | |
nyt://article/9d847af6-3023-585e-bbf9-4d1b732e6687 | https://www.nytimes.com/2021/10/22/us/politics/pfizer-vaccine-children-5-to-11.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-24 14:47:44 | U.S. | Politics | u.s. | Clinical Trials;Coronavirus (2019-nCoV);Vaccination and Immunization;Children and Childhood;Coronavirus Risks and Safety Concerns;Pfizer Inc;BioNTech SE;Food and Drug Administration | NA | By Sharon LaFraniere and Noah Weiland | Article | F.D.A. Says Pfizer Vaccine’s Benefits Outweigh Key Risks in Children 5 to 11 | The findings could add momentum for F.D.A. authorization of the pediatric dose, perhaps as early as next week, a long-awaited development that would affect 28 million children. | Clinical Trials , Coronavirus (2019-nCoV) , Vaccination and Immunization , Children and Childhood , Coronavirus Risks and Safety Concerns | Pfizer Inc , BioNTech SE , Food and Drug Administration | image , photo , A 5-year-old receiving a Pfizer-BioNTech trial dose last month. , Shawn Rocco/Duke University, via Reuters , 1 , https://static01.nyt.com/images/2021/10/22/us/politics/22dc-vaccine-kids-1/merlin_195942822_c290dd50-b8d5-4041-b806-d9922576bbdc-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/22/us/politics/22dc-vaccine-kids-1/merlin_195942822_c290dd50-b8d5-4041-b806-d9922576bbdc-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2021/10/22/us/politics/22dc-vaccine-kids-1/merlin_195942822_c290dd50-b8d5-4041-b806-d9922576bbdc-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | ||
nyt://article/c8f129c2-b420-505e-8c2c-ba47697ddaba | https://www.nytimes.com/2021/10/22/business/prop-guns-baldwin-shooting.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-24 11:43:44 | Business | business | Firearms;Movies;Television;Accidents and Safety;Baldwin, Alec | NA | By Brooks Barnes | Article | Striving for Authenticity, Films Often Use Real Guns on Set | Safety protocols for firearms on set are well established and straight forward, and injuries of any kind are rare. | Firearms , Movies , Television , Accidents and Safety | Baldwin, Alec | image , photo , Real guns have a certain recoil that can be hard to replicate. , Thomas Samson/Agence France-Presse — Getty Images , 1 , https://static01.nyt.com/images/2021/10/22/arts/22baldwin-briefing-prop-guns2/merlin_196650855_6c1a305b-bdb6-48d1-9698-f3b75a5264b4-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/22/arts/22baldwin-briefing-prop-guns2/merlin_196650855_6c1a305b-bdb6-48d1-9698-f3b75a5264b4-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2021/10/22/arts/22baldwin-briefing-prop-guns2/merlin_196650855_6c1a305b-bdb6-48d1-9698-f3b75a5264b4-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | |||
nyt://article/0eaa7a85-4b63-5132-90b4-0868105c0a8f | https://www.nytimes.com/2021/10/22/business/shortages-supply-chain.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-23 13:50:23 | Business | business | Coronavirus (2019-nCoV);Quarantine (Life and Culture);Shortages;International Trade and World Market;Factories and Manufacturing;Ships and Shipping;Ports;Shutdowns (Institutional);Far East, South and Southeast Asia and Pacific Areas;Europe;United States | NA | By Peter S. Goodman | Article | How the Supply Chain Broke, and Why It Won’t Be Fixed Anytime Soon | Confession: We didn’t even have a logistics beat before the pandemic. Now we do. Here’s what we’ve learned about the global supply chain disruption. | Coronavirus (2019-nCoV) , Quarantine (Life and Culture) , Shortages , International Trade and World Market, Factories and Manufacturing , Ships and Shipping , Ports , Shutdowns (Institutional) | Far East, South and Southeast Asia and Pacific Areas, Europe , United States | image , photo , Container ships docked at the Port of Los Angeles last week. The cost of moving cargo has shot up. , Erin Schaff/The New York Times , 1 , https://static01.nyt.com/images/2021/10/21/business/00SupplyChain-Explainer-top/00SupplyChain-Explainer-top-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/21/business/00SupplyChain-Explainer-top/merlin_196459641_872a0da8-8f1d-4a04-b8b1-fbb9c0479b3f-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2021/10/21/business/00SupplyChain-Explainer-top/merlin_196459641_872a0da8-8f1d-4a04-b8b1-fbb9c0479b3f-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | |||
nyt://article/ed0e6376-ade2-5cc0-9e0b-cc2f5dac76f9 | https://www.nytimes.com/2021/10/22/technology/facebook-election-misinformation.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-23 23:10:12 | Technology | technology | Social Media;Rumors and Misinformation;Computers and the Internet;Presidential Election of 2020;Storming of the US Capitol (Jan, 2021);Right-Wing Extremism and Alt-Right;Voter Fraud (Election Fraud);QAnon;Zuckerberg, Mark E;Facebook Inc | NA | By Ryan Mac and Sheera Frenkel | Article | Internal Alarm, Public Shrugs: Facebook’s Employees Dissect Its Election Role | Company documents show that the social network’s employees repeatedly raised red flags about the spread of misinformation and conspiracies before and after the contested November vote. | Social Media , Rumors and Misinformation , Computers and the Internet , Presidential Election of 2020 , Storming of the US Capitol (Jan, 2021), Right-Wing Extremism and Alt-Right , Voter Fraud (Election Fraud) , QAnon | Facebook Inc | Zuckerberg, Mark E | image , photo , , Illustration by Mel Haasch; Photograph by Anna Moneymaker for The New York Times , 1 , https://static01.nyt.com/images/2021/10/23/obituaries/00facebook-misinfo/00facebook-thumbStandard.png , https://static01.nyt.com/images/2021/10/23/obituaries/00facebook-misinfo/00facebook-mediumThreeByTwo210.png, https://static01.nyt.com/images/2021/10/23/obituaries/00facebook-misinfo/00facebook-mediumThreeByTwo440.png, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | ||
nyt://article/398a7a4b-7bb1-541f-85f9-11e1cc22c3cd | https://www.nytimes.com/2021/10/23/theater/broadway-race-depictions.html | 1e+14 | 1e+14 | New York Times | 2021-10-23 | 2021-10-24 12:40:17 | Theater | theater | Theater;Black People;Race and Ethnicity;Black Lives Matter Movement;George Floyd Protests (2020);Discrimination | NA | By Michael Paulson | Article | As Broadway Returns, Shows Rethink and Restage Depictions of Race | “The Book of Mormon,” “The Lion King” and “Hamilton” are among those making changes as theaters reopen following the lengthy pandemic shutdown. | Theater , Black People , Race and Ethnicity , Black Lives Matter Movement , George Floyd Protests (2020), Discrimination | image , photo , After Black actors in “The Book of Mormon” signed a letter expressing concern, the original creative team held a two week workshop with the cast to explain their intentions and make revisions. Kim Exum, center, signed the letter and welcomed the changes, some of which elevate the strength of her character, Nabulungi., Sara Krulwich/The New York Times , 1 , https://static01.nyt.com/images/2021/10/24/arts/24broadway-p1/oobroadway1a-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/24/arts/24broadway-p1/oobroadway1a-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/10/24/arts/24broadway-p1/oobroadway1a-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | ||||
nyt://article/adeaccf9-a4f4-5a4f-88d6-f6b05364d48a | https://www.nytimes.com/2021/10/21/us/politics/liz-cheney-kevin-mccarthy.html | 1e+14 | 1e+14 | New York Times | 2021-10-21 | 2021-10-21 23:14:54 | U.S. | Politics | u.s. | United States Politics and Government;Lobbying and Lobbyists;Cheney, Liz;McCarthy, Kevin (1965- );Congressional Leadership Fund;House of Representatives;Republican Party;Wyoming | NA | By Jonathan Martin | Article | Liz Cheney’s Consultants Are Given an Ultimatum: Drop Her, or Be Dropped | The message, delivered by a lobbyist close to the House minority leader, Kevin McCarthy, has already led one Republican firm to cut ties. | United States Politics and Government, Lobbying and Lobbyists | Congressional Leadership Fund, House of Representatives , Republican Party | Cheney, Liz , McCarthy, Kevin (1965- ) | Wyoming | image , photo , Representative Liz Cheney voted to impeach former President Donald J. Trump and was on a special committee to investigate the Jan. 6 riot. , Al Drago for The New York Times , 1 , https://static01.nyt.com/images/2021/10/21/us/politics/21MCCARTHY-1/merlin_196522110_3a3d19c5-c96f-46fc-99c2-69d5bdc8764f-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/21/us/politics/21MCCARTHY-1/merlin_196522110_3a3d19c5-c96f-46fc-99c2-69d5bdc8764f-mediumThreeByTwo210.jpg, https://static01.nyt.com/images/2021/10/21/us/politics/21MCCARTHY-1/merlin_196522110_3a3d19c5-c96f-46fc-99c2-69d5bdc8764f-mediumThreeByTwo440.jpg, Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 |
nyt://article/05277759-fa4a-5b16-8775-1ba56db6bbb3 | https://www.nytimes.com/2021/10/21/style/bones-day-noodle-tiktok-dog.html | 1e+14 | 1e+14 | New York Times | 2021-10-21 | 2021-10-21 13:08:13 | Style | style | Social Media;Dogs;Quarantine (Life and Culture);Content Type: Personal Profile;TikTok (ByteDance) | NA | By Jesus Jiménez | Article | Bones or No Bones? A Dog on TikTok Is Setting Today’s Mood. | Millions of people are checking TikTok posts about a pug as a horoscope of sorts to see what kind of day they will have based on whether the dog rises or stays in bed. | Social Media , Dogs , Quarantine (Life and Culture) , Content Type: Personal Profile | TikTok (ByteDance) | image , photo , Between an online world, where it’s easy to insult a stranger from behind a screen, and a real world rife with fears of climate doom, political divisiveness and a stubborn pandemic lies a safe space with a soft dog bed., showmenoodz/Instagram , 0 , https://static01.nyt.com/images/2021/10/21/world/21xp-tiktok-dog-06/21xp-tiktok-dog-06-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/21/world/21xp-tiktok-dog-06/21xp-tiktok-dog-06-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/10/21/world/21xp-tiktok-dog-06/21xp-tiktok-dog-06-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | |||
nyt://article/1e9b23f0-fa52-5283-8e5e-cf5ae3defb0f | https://www.nytimes.com/2021/04/22/health/surgery-scar.html | 1e+14 | 1e+14 | New York Times | 2021-04-22 | 2021-04-23 23:37:51 | Health | health | Skin;Burns;Surgery and Surgeons;Drugs (Pharmaceuticals);Research;Longaker, Michael;Gurtner, Geoffrey;Science (Journal);Stanford University | NA | By Gina Kolata | Article | Imagine, Surgery Without a Scar | A new study shows that a 20-year-old drug prevents scarring in mice. If it works on humans, it could change the lives of those with disfiguring wounds. | Skin , Burns , Surgery and Surgeons , Drugs (Pharmaceuticals), Research | Science (Journal) , Stanford University | Longaker, Michael, Gurtner, Geoffrey | image , photo , A test of verteporfin on wounds made on mice: The vertoporfin treated wound, right, showed no scarring after 30 days, compared with a mouse treated with saline, center., Michael T. Longaker, Shamik Mascharak, Heather desJardins-Park and Michaell Davitt , 1 , https://static01.nyt.com/images/2021/04/22/science/22SCAR/22SCAR-thumbStandard.jpg , https://static01.nyt.com/images/2021/04/22/science/22SCAR/22SCAR-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/04/22/science/22SCAR/22SCAR-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 | ||
nyt://article/b405a7f0-510d-5495-872c-ebf60e10dfcf | https://www.nytimes.com/2021/10/22/travel/pets-airlines-regulations.html | 1e+14 | 1e+14 | New York Times | 2021-10-22 | 2021-10-22 11:54:45 | Travel | travel | Dogs;Airlines and Airplanes;Rabies;Pets;Travel and Vacations;United States | NA | By Debra Kamin | Article | Flying With Your Pet? It Just Got a Lot More Difficult. | A recent C.D.C. rabies rule, pricey pet ‘tickets’ and limits on animals in airline cabins are making traveling with a pet more complicated. | Dogs , Airlines and Airplanes, Rabies , Pets , Travel and Vacations | United States | image , photo , A passenger with her dog at Los Angeles International Airport. New, and sometimes confusing, rules have made some travelers think twice before flying with their pets., Etienne Laurent/EPA, via Shutterstock , 1 , https://static01.nyt.com/images/2021/10/22/travel/22airplane-pets/22airplane-pets-thumbStandard.jpg , https://static01.nyt.com/images/2021/10/22/travel/22airplane-pets/22airplane-pets-mediumThreeByTwo210.jpg , https://static01.nyt.com/images/2021/10/22/travel/22airplane-pets/22airplane-pets-mediumThreeByTwo440.jpg , Standard Thumbnail , mediumThreeByTwo210 , mediumThreeByTwo440 , 75 , 140 , 293 , 75 , 210 , 440 | 0 |
Conclusion
It is a nice assignment for students of data science in the age of globalization. I learnt a lot in the assignment and I recommend that anyone in quest to learn data science should avail himself to learn about APIs. Now, I have the opportunity to view the most viewed article of any week in the comfort of my home with a click of my computer mouse.