Skip to content

kereh/CryptoSentimentAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CryptoSentimentAnalyzer

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.

Features

  • 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.

Requirements

  • Python 3.8 or newer
  • OpenAI API Key (GPT-3.5 or newer)

Installation

  1. Clone this repository:

    git clone https://github.com/hnvdie/CryptoSentimentAnalyzer.git
    cd CryptoSentimentAnalyzer
  2. Install required dependencies:

    pip install -r requirements.txt
  3. Set up your OpenAI API key:

    Replace API_KEY = "" in the script with your OpenAI API key.

Usage

  1. Run the script:

    python CryptoSentimentAnalyzer.py
  2. The tool will scrape articles from predefined sources and classify them based on sentiment and token impact.

Customization

  • To add new sources, update the watchlist dictionary in the script with the desired URLs.
  • Modify the prompt sent to OpenAI API in the openAIreadAnalysis function to customize the analysis.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Disclaimer

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!

About

CryptoSentimentAnalyzer is a Python-based tool designed with scraping method 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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages