News Article Sentiment Analysis

LHD Build Challenge - Write a script to analyze article titles

Challenge Info

Want to get a quick glimpse of today’s news? Create a hack that can analyze the general sentiment of a day’s stories from only the title. Show it off on Devpost when you’re done.

How to use

  • Install textblob
    pip install textblob
  • Run the main.py code
  • Copy and Paste the headline of the news article you would like to perform sentiment analysis on when the prompt is displayed.

Result

  • Negative Article - when textblob sentiment polarity returns a negative value
  • Positive Article - when textblob sentiment polarity value is positive
  • Neutral Article - when textblob sentiment polarity value is 0.

Built With

Share this project:

Updates