An intelligent automated system that fetches tech news, generates engaging social media posts using AI, and automatically posts to LinkedIn, Twitter, and other platforms at optimal times.
Or use our universal deployment script:
python deploy.py- 📰 Automated News Fetching: Fetches latest tech news from multiple sources
- 🤖 AI Content Generation: Uses OpenAI to create engaging social media posts
- 🎨 Image Generation: Creates professional images for each post
- 📱 Multi-Platform Posting: Posts to LinkedIn, Twitter, Facebook
- ⏰ Smart Scheduling: Posts at optimal times for maximum engagement
- 📊 Dashboard Interface: Beautiful web interface for monitoring and control
- 🔄 Continuous Operation: Runs 24/7 with automated scheduling
- Python 3.8+
- OpenAI API key
- Social media API keys (optional)
# Clone the repository
git clone https://github.com/ZainulabdeenOfficial/social-news-bot.git
cd social-news-bot
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
cp env_template.txt .env
# Edit .env with your API keysstreamlit run web_dashboard.py# Start the automated scheduler
python main.py run
# Post content immediately
python main.py post-now
# Fetch recent news
python main.py fetch-news
# Test all components
python main.py test- ⚡ Lightning fast deployments
- 🌍 Global CDN
- 🔄 Automatic deployments
- 📱 Serverless functions
- 🆓 Generous free tier
- 🎯 One-click deployment
- 🔧 Easy environment variable management
- 📊 Built-in monitoring
- 🆓 500 hours/month free
- 🔄 GitHub integration
- 🛡️ DDoS protection
- 🔒 Automatic SSL
- 📈 Auto-scaling
- 🆓 750 hours/month free
- 🌐 Custom domains
- 🏛️ Established platform
- 🔧 Extensive add-ons
- 📊 Advanced monitoring
- 🆓 550-1000 hours/month free
- 🛠️ CLI tools
📖 For detailed deployment instructions, see:
OPENAI_API_KEY=sk-your-openai-api-key-here# LinkedIn
LINKEDIN_CLIENT_ID=your_linkedin_client_id
LINKEDIN_CLIENT_SECRET=your_linkedin_client_secret
LINKEDIN_ACCESS_TOKEN=your_linkedin_access_token
# Twitter
TWITTER_API_KEY=your_twitter_api_key
TWITTER_API_SECRET=your_twitter_api_secret
TWITTER_ACCESS_TOKEN=your_twitter_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_twitter_access_token_secret
# Facebook
FACEBOOK_ACCESS_TOKEN=your_facebook_access_token
FACEBOOK_PAGE_ID=your_facebook_page_id├── api/
│ └── index.py # Vercel API endpoint
├── web_dashboard.py # Streamlit web interface
├── main.py # CLI application
├── config.py # Configuration management
├── news_fetcher.py # News fetching logic
├── content_generator.py # AI content generation
├── image_generator.py # Image generation
├── social_media_poster.py # Social media posting
├── scheduler.py # Scheduling logic
├── requirements.txt # Python dependencies
├── vercel.json # Vercel configuration
├── Procfile # Heroku configuration
├── railway.json # Railway configuration
├── render.yaml # Render configuration
├── runtime.txt # Python version specification
├── deploy.py # Universal deployment script
├── deploy_vercel.py # Vercel-specific deployment script
└── README.md # This file
GET /health
Returns service status and version information.
GET /api/status
Returns status of all components (news fetcher, content generator, etc.).
- Fast Deployment: Optimized for all major platforms
- Auto-scaling: Handles traffic spikes automatically
- Global CDN: Content delivered from edge locations
- 99.9% Uptime: Reliable hosting infrastructure
- Environment Variables: Secure API key management
- HTTPS: Automatic SSL certificates
- Input Validation: All inputs are validated
- Rate Limiting: Built-in protection against abuse
- Health Checks: Automatic monitoring endpoints
- Error Tracking: Comprehensive error logging
- Performance Metrics: Real-time performance monitoring
- Usage Analytics: Track API usage and performance
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for providing the AI capabilities
- Streamlit for the web framework
- Vercel, Railway, Render, and Heroku for hosting platforms
- All contributors and supporters
- Documentation: MULTI_PLATFORM_DEPLOYMENT.md
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Made with ❤️ by M Zain Ul Abideen