CryptoSentimentAnalyzer is a Python-based tool designed to analyze cryptocurrency news articles and classify them into various categories based on sentiment and token impact. The tool utilizes the OpenAI API for advanced sentiment analysis.
- Web Scraping: Fetch articles from specific cryptocurrency websites using
BeautifulSoup. - Article Classification: Leverage OpenAI API to classify articles based on sentiment, token impact, and entry position opportunities.
- Multithreading: Speeds up data retrieval and analysis with
ThreadPoolExecutor. - Data Cleaning: Removes irrelevant information from scraped articles.
- Python 3.8 or newer
- OpenAI API Key (GPT-3.5 or newer)
-
Clone this repository:
git clone https://github.com/hnvdie/CryptoSentimentAnalyzer.git cd CryptoSentimentAnalyzer -
Install required dependencies:
pip install -r requirements.txt
-
Set up your OpenAI API key:
Replace
API_KEY = ""in the script with your OpenAI API key.
-
Run the script:
python CryptoSentimentAnalyzer.py
-
The tool will scrape articles from predefined sources and classify them based on sentiment and token impact.
- To add new sources, update the
watchlistdictionary in the script with the desired URLs. - Modify the prompt sent to OpenAI API in the
openAIreadAnalysisfunction to customize the analysis.
This project is licensed under the MIT License. See the LICENSE file for details.
This tool is intended for informational purposes only. The classifications provided are based on automated analysis and should not be considered financial advice.
Happy analyzing!