GitHub Park

Reddit AI Trend Reports: Automatically generate trend reports from AI-related Reddit communities

Reddit AI Trend Reports is an automated tool that generates detailed reports on the latest development trends in the AI field by monitoring multiple AI-related Reddit communities in real-time. It collects data from multiple communities, providing comprehensive trend analysis including daily highlights, weekly comparisons, monthly technical evolution, and in-depth technical analysis. The tool supports bilingual report outputs in English and Chinese.

Reddit AI Trend Reports employs a structured file storage system, automatically updates report links, offers convenient containerized deployment via Docker, utilizes MongoDB for data persistence to support historical analysis, and is highly customizable. Users can flexibly configure parameters such as monitoring sources, report generation schedules, and languages, helping them stay informed about key developments in the AI field.

Core Features of Reddit AI Trend Reports

  • Real-time AI Trend Tracking: Captures emerging AI technologies, related discussions, and technical breakthroughs.
  • Multi-Community Analysis: Collects data from multiple AI-related subreddits to provide a more comprehensive perspective.
  • Detailed Trend Interpretation: Reports include daily highlights, weekly trend comparisons, monthly technical evolution, and other in-depth content.
  • International Support: Generates reports in both English and Chinese versions.
  • Clear File Structure: Reports are stored in year/month/day folders for easy retrieval.
  • Automatic README Updates: The latest report links are updated automatically.
  • Docker Deployment: Supports containerized deployment with simple operations.
  • MongoDB Data Storage: Saves all data for convenient historical analysis.

Installing and Using Reddit AI Trend Reports

Prerequisites

  • Docker and Docker Compose
  • Reddit API credentials
  • Groq API key

Environment Variable Configuration

  1. Copy the .env.example file to .env:
cp .env.example .env
  1. Edit the .env file and fill in the API keys and other configuration details:
# Reddit API credentials
REDDIT_CLIENT_ID=your_reddit_client_id
REDDIT_CLIENT_SECRET=your_reddit_client_secret
REDDIT_USER_AGENT=your_reddit_user_agent

# MongoDB connection information
MONGODB_URI=mongodb://mongodb:27017
MONGODB_DATABASE=reddit_trends

# Groq API key
GROQ_API_KEY=your_groq_api_key

# Report generation settings
REPORT_GENERATION_TIME=06:00
REPORT_LANGUAGES=en,zh

Docker Compose Deployment for Reddit AI Trend Reports

  1. Build and start the containers:
docker-compose up -d
  1. View the logs:
docker-compose logs -f app

Manual Execution of Reddit AI Trend Reports

  1. Install dependencies:
pip install -r requirements.txt
  1. Generate a one-time report:
python report_generation.py --languages en zh
  1. Schedule periodic report generation:
python report_generation.py --interval 24
Visit liyedanpdx/reddit-ai-trends to access the source code and obtain more information.