Skip to content

jm-contreras-zz/google-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

google-news

Repository of scripts that scrape news headlines from Google News, prepare them for readability analysis, and visualize the results aggregated by news outlet. The scripts and their output are described in this blog post.

google_news.py scrapes news headlines and the name of their outlets from the Google News homepage on a set schedule. Sample data are found in google_news.csv. After all the scheduled jobs are run, the data are cleaned: badly-formed text, non-sensical results, and duplicate records are reformatted or removed. The readability of the headlines is assessed with the Flesch-Kincaid Grade Level test, which requires the readability functions found here.

Finally, the cleaned data are aggregated at the level of news outlets. google_news.R is called to create a visualization of the results using the plotly R API.

About

Scripts to scrape and analyze news headlines from Google News

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published