ForexSentimentAnalyzer is a Python tool that scrapes tweets from X (formerly Twitter) related to specific forex currency pairs, performs sentiment analysis, and generates a concise report predicting whether the price is likely to go up or down based on public sentiment. You can also edit the code to scrape tweets for another purpose
- π¦ Real-Time Twitter Scraping β Fetch tweets related to forex markets using relevant hashtags and keywords.
- π§ Sentiment Analysis β Analyze tweets using Natural Language Processing (NLP) models to detect bullish or bearish sentiment.
- π Prediction Report β Generate price prediction report with reasoning based on tweet sentiment trends.
- π Export Reports β Save results as text .
git clone https://github.com/your-username/forex-sentiment-analyzer.git
cd forex-sentiment-analyzer
pip install -r requirements.txt
edit the variable located after imports you can get gemini api key from https://aistudio.google.com/app/apikey
Pull requests are welcome! Please open an issue first to discuss what you would like to change or add.