Automated news curation and social media posting tool for African Esports. Powered by xAI Grok (News Curation), Google Gemini (Summarization/Filtering), and X API (Posting).
- Smart Curation: Uses Grok (connected to live X search) to find real-time esports news from the last 48 hours.
- Intelligent Filtering: Filters out non-African news and irrelevant noise (betting, crypto, etc.).
- Card Generation: Automatically designs professional social media cards with specific entity highlighting.
- Auto-Posting: Posts directly to X (Twitter) with a single confirmation.
-
Install Dependencies:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt -
Configuration:
- Rename
config.example.jsontoconfig.json. - Add your API Keys:
x_api_key: xAI Console (for Grok)gemini_api_key: Google AI Studiotwitter_*: X Developer Portal (Consumer + Access Tokens)
- Rename
Run the Automation:
python ANB_Grok/grok_fetch.py- It searches X for news.
- Generates a daily digest (
generated_cards/digest_DATE.md). - Creates visual cards for top stories.
- Asks:
🚀 Proceed with posting? (y/n) - If 'y', uploads images and posts tweets to your account.
ANB_Grok/: Main logic for Grok fetcher and card generation.ANB_NewsAPI/: Legacy NewsAPI implementation.social_poster.py: Shared module for X API interaction.esports_automation.py: Shared utilities for image processing.