Skip to content

notnews/nyt-civil-rights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Civil Rights Coverage in the NYT Over Time

Track the number of news stories about African American civil rights issues over the decades. We track the coverage using a simple keyword search. Article featuring any of the following keywords are taken to deal with black civil rights: affirmative action, racial, voting rights, busing, african american, black, negro, racial discrimination, civil rights, segregation

You can track coverage aggregated over an entire year on the NYT Chronicle.

If you would like to get your own data, start by getting a NYT Article Search API key. Then you can use the R package, rtimes, using the following script (Output: Quarterly Data) or the R package jsonlite using the following script. You can plot the data using the following script. (See the graph (pdf).)

Note

The scripts track the number of articles containing the keyword search. But sometimes a more apt unit of measurement is the proportion of articles mentioning the search term. The point is especially important over great lengths of time as, over time, the number of articles published in the NYT has been increasing. To get the proportion of articles, you need to use the 'source facet.' For instance, if you look at the end of the output given by the following API Request, you will see the total number of articles from various sources (Reuters, AP, NYT, Internet Video Archive, CNBC etc.) for the specified date (2015-07-10).

License

Scripts are released under the MIT License.

About

Example of how to use the NYT API from R

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages