Sentiment Analysis
Intro:
I wanted to start investing in stocks but didn't know which ones to buy. So I created a program to tell me which stocks were good or bad based off of website sentiment analysis. Here is how the program worked:
The Idea:
The idea was to take in a .csv and sort through alphebetically to find which stock the user was interested in; this goes through a validate function which checks first if the stock is in the .csv and second scans to find the selected stock.

Google Search and Parse:
The program would then take the stock name and search for it on Google. It would then take the first 5 search results and run them through ChatGPT to generate a sentiment score. The program would then average the sentiment scores to determine if the stock was good or bad.

ChatGPT Integration:
Then after it completes we stop the completed file at the max number of tokens that can go through a ChatGPT query. At this point when this project was made the max tokens was 15500.
ChatGPT is then given a specific prompt to try and reduce temperature of responses and ensure the most consistent results possible. This prompt engineering was made possible through googles resources and went through multiple iterations to ensure accuracy.

The Results:
Input the symbolic repersentation of any Fortune 500 Company you are considering to invest in: AAPL
Sentiment Analysis: Based on the provided context, Apple Inc. is a strong choice of investment because:

Point 1
1. Apple's revenue is not solely dependent on one product. They have a diverse product portfolio including iPhones, iPads, Macs, wearables, and services. This reduces the risk associated with relying on a single product for revenue generation.
Point 2
2. Apple has a strong track record of innovation and customer loyalty. They consistently release new and improved products, which helps maintain their market share and attract new customers. This innovation-driven approach has been a key driver of their success.
Point 3
3. Apple has a strong financial position. They have a significant amount of cash reserves and generate substantial free cash flow. This provides them with the ability to invest in research and development, acquisitions, and return value to shareholders through dividends and share buybacks.