A Python automation project that generates LinkedIn post content with Google GenAI via LangChain and publishes it using the LinkedIn API.
- AI-generated LinkedIn post content
- Automated publishing to LinkedIn
- Environment-variable based configuration
- Pre-configured for best practices (linting, formatting, CI)
- Example documentation and contribution guidelines
-
Clone the repository:
git clone https://github.com/gvatsal60/LinkAutoPostAI.git cd LinkAutoPostAI -
Set up your environment:
uv sync
-
Create your environment file:
cp src/.env.dev src/.env
-
Update
src/.envwith required values:MODEL_API_KEY=your_model_api_key MODEL_NAME=gemini-2.5-flash LINKEDIN_ACCESS_TOKEN=your_linkedin_access_token
-
Run the app:
make run
LinkAutoPostAI/
├── src/ # Application source code
│ ├── app.py # Main entrypoint
│ ├── linkedin.py # LinkedIn API integration
│ ├── config.py # Environment variable loading
│ └── .env.dev # Environment variable template
├── snippets/ # Sample snippets/assets
├── README.md
├── Makefile
├── pyproject.toml
├── LICENSE
└── ...
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the Apache 2.0 License. See LICENSE for details.