Twitter Stock Sentiment
Analyzes Twitter/X sentiment for stocks using the bird CLI and $cashtag tracking.
Features
- Mention Volume: Track tweet counts for any $TICKER
- Sentiment Analysis: Bull/neutral/bear scoring using NLP
- Influencer Tracking: Identify high-follower accounts discussing the stock
- Trending Hashtags: Associated tags and themes
- Crisis Detection: Spikes in negative sentiment
- 7-day Trends: Volume and sentiment changes
Usage
./analyze.sh AAPL
./analyze.sh TSLA --days 30
Output Format
Markdown report with:
- Sentiment score (-1 to +1)
- Mention volume and trend
- Top influencer tweets
- Hashtag analysis
- Notable sentiment shifts
Requirements
- bird CLI installed (
brew install steipete/tap/bird) - Authenticated Twitter/X session
Installation
- Clone this repository to your skills folder
- Install bird CLI:
brew install steipete/tap/bird - Authenticate with Twitter/X:
bird auth - Install Python dependencies:
pip install -r requirements.txt
How It Works
analyze.shfetches recent tweets mentioning the $TICKER using bird CLIsentiment.pyperforms NLP analysis on tweet text using VADER- Results are aggregated and formatted as a Markdown report
- Influencer tracking identifies high-follower accounts
- Hashtag extraction reveals trending themes
Configuration
Edit analyze.sh to customize:
- Number of tweets to fetch (default: 100)
- Time window (default: 7 days)
- Sentiment thresholds for crisis detection
微信扫一扫