Transform your blogs, newsletters, or articles into platform-ready social media posts in seconds using Mistral AI 🚀
- 📝 Paste any long-form content (blogs, reports, newsletters, etc.)
- 🌐 Generate posts tailored for Twitter, LinkedIn, Instagram, and more
- 🎭 Customize tone (formal, witty, casual, professional)
- 📏 Adjust length (short, medium, long)
- 🎨 Control creativity with temperature slider
- 📥 Export results as CSV or JSON
- ⚡ Powered by Mistral AI
social-posts/
│
├── app.py # Streamlit UI
├── requirements.txt # Dependencies
├── .env # API Key
│
├── src/ # Core logic
│ ├── init.py
│ ├── generator.py # Mistral API calls
│ └── styles.py # Platform-specific style templates
│
├── utils/ # Helpers
│ ├── init.py
│ └── file_utils.py # Save/export functions
│
├── data/ # Sample input
│ └── sample_blog.txt
│
└── outputs/ # Generated posts
├── posts.json
└── posts.csvgit clone https://github.com/msravanthi674/social-media-posts.git
cd social-posts- Create & activate environment (using conda)
conda create -n social-posts python=3.9 -y
conda activate social-posts- Install dependencies
pip install -r requirements.txt- Add your Mistral API key
Create a .env file in the project root:
MISTRAL_API_KEY=your_api_key_here- Run the app locally
streamlit run app.py- 📌 Add multi-post variations per platform
- 🎤 Support voice input for content drafting
- 📊 Show character/word counts (esp. for Twitter)
- ⏰ Schedule posts directly to platforms