Tired of manually creating LinkedIn posts? This tool automates the entire process—from finding relevant content to publishing a well-structured post. Simply provide a topic name or a GitHub README link, and let AI do the magic! ✨
🌐 Live: https://linkedout-a6rv.onrender.com/
- User Input 📝: Enter a topic name or a GitHub README link.
- Custom Search Engine 🔍: The tool queries Google Custom Search API to fetch relevant web links.
- Scraping with Failure Handling 🕷️: Extracts content using BeautifulSoup, with mechanisms to handle non-scrapable websites.
- Embedding & Storage 📚: The extracted content is embedded and stored in ChromaDB for efficient retrieval.
- Similarity Search 🔎: Retrieves the most relevant content using similarity search techniques.
- AI-Generated Post 🤖: LLM from OpenRouter processes the retrieved content with a precise brief prompt and crafts an engaging LinkedIn post.
- Auto-Publish 🚀: The post is instantly published on LinkedIn using the LinkedIn API.
✅ AI-Powered Post Generation – Creates high-quality, engaging posts 📢
✅ Automated Content Search – Finds relevant articles using Google Custom Search API 🔍
✅ Smart Content Extraction – Web scraping with failure handling 🕷️
✅ Efficient Context Storage – Uses ChromaDB for optimized retrieval 🧠
✅ Seamless LinkedIn Integration – Directly posts to LinkedIn in one click 🎯
✅ Custom Input Methods – Supports both topics & README files 📝
- Python 🐍 – Core backend scripting
- Google Custom Search API 🔍 – To fetch relevant web links
- BeautifulSoup 🕷️ – For robust web scraping
- ChromaDB 📚 – Vector database for efficient retrieval
- LangChain 🔗 – For similarity search & content retrieval
- LinkedIn API 🔗 – For automated post publishing
🚀 Boost Productivity – No more manual post writing, save hours!
📈 Enhance Engagement – Posts are well-structured & AI-optimized for maximum reach.
🎯 Consistent Posting – Stay active on LinkedIn without extra effort!
- Extracting Relevant Content 🧐 – Some websites block scraping. Solution? Google Custom Search API + failure handling in BeautifulSoup.
- Maintaining Context 🧠 – Many sources had redundant info. Solution? ChromaDB for efficient retrieval using embeddings.
- LinkedIn API Limitations 🚫 – Posting limitations required rate-limiting & API token management.
git clone https://github.com/SiddharthCh7/LinkedIn-Post-Automation.git
cd LinkedIn-Post-Automation
pip install -r requirements.txtTo generate a post:
python main.py --topic "AI in Healthcare"
# OR
python main.py --github_link "https://github.com/someproject/README.md"Create a .env file and add:
GOOGLE_API_KEY
GOOGLE_SEARCH_API_KEY
SEARCH_ENGINE_ID
CLIENT_ID
CLIENT_SECRET
OPENROUTER_API_KEY
GITHUB_API_KEY
✨ Support for multiple social media platforms
✨ Advanced AI-powered post structuring
✨ Post scheduling & analytics dashboard
Contributions welcome! Fork the repo & submit a PR. Let's build this together! 💡
💡 Developed by Siddharth
