Skip to content

Project to monitor news media sentiments and provide daily plots

Notifications You must be signed in to change notification settings

kundami/news_sentiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

News Mood

In this assignment, you'll create a Python script to perform a sentiment analysis of the Twitter activity of various news oulets, and to present your findings visually.

Your final output should provide a visualized summary of the sentiments expressed in Tweets sent out by the following news organizations: BBC, CBS, CNN, Fox, and New York times.

news

The first plot will be and/or feature the following:

  • Be a scatter plot of sentiments of the last 100 tweets sent out by each news organization, ranging from -1.0 to 1.0, where a score of 0 expresses a neutral sentiment, -1 the most negative sentiment possible, and +1 the most positive sentiment possible.
  • Each plot point will reflect the compound sentiment of a tweet.
  • Sort each plot point by its relative timestamp.

The second plot will be a bar plot visualizing the overall sentiments of the last 100 tweets from each organization. For this plot, you will again aggregate the compound sentiments analyzed by VADER.

The tools of the trade you may need for your task as a data analyst include the following: tweepy, pandas, matplotlib, seaborn, and VADER.

Your final Jupyter notebook must:

  • Pull last 100 tweets from each outlet.

  • Perform a sentiment analysis with the compound, positive, neutral, and negative scoring for each tweet.

  • Pull into a DataFrame the tweet's source acount, its text, its date, and its compound, positive, neutral, and negative sentiment scores.

  • Export the data in the DataFrame into a CSV file.

  • Save PNG images for each plot.

  • NYTimes - Overall Compound Negative Bias news

  • CNN - Overall Marginal Compound positive Bias news

  • BBC - Overall Neutral Compound Bias news

  • CBS - Overall Positive Compound Bias news

  • Fox - Overall Positive Compound Bias news

  • Scatter Plot for all news sentiments news

  • Overall Sentiment Bar Chart - Conclusions

  • News Paper Sentiment Analysis

  • NTYTimes and Fox news have negative coorelation

  • BBC has an overall neutral bias

  • CBS has a strong positive bias NewsMoods

About

Project to monitor news media sentiments and provide daily plots

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published