Using BeautifulSoup to analyze HTML and NLTK VADER to do sentiment analysis on news headlines
sentiment_analysis_sample.py contains an example of analyzing HTML data using Beautiful soup to extract financial news headlines and then applying NLTK VADER to approximate the sentiment (positive, negative, or neutral) from the headlines.
NOTE: This program is not nearly robust enough as-is to extrapolate worthwhile financial advice.
Datasets courtesy of DataCamp.