Skip to content

erissatallan/Automated-News-Bot

Repository files navigation

African Esports News Bot 🎮🌍

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

Features

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

Setup

  1. Install Dependencies:

    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
  2. Configuration:

    • Rename config.example.json to config.json.
    • Add your API Keys:
      • x_api_key: xAI Console (for Grok)
      • gemini_api_key: Google AI Studio
      • twitter_*: X Developer Portal (Consumer + Access Tokens)

Usage

Run the Automation:

python ANB_Grok/grok_fetch.py
  1. It searches X for news.
  2. Generates a daily digest (generated_cards/digest_DATE.md).
  3. Creates visual cards for top stories.
  4. Asks: 🚀 Proceed with posting? (y/n)
  5. If 'y', uploads images and posts tweets to your account.

Directory Structure

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors