A Python-based automation skill that generates and uploads media content to Instagram and TikTok automatically, with support for AI-generated images and video via DALL-E and Sora.
git clone https://github.com/PatrickMihalcea/SocialMediaAutomation.gitSocialMediaAutomation is a Python skill that scripts the automatic upload of media to Instagram and TikTok, reducing the manual effort of social media posting. The project includes modules for AI-generated image creation using DALL-E and video generation via Sora, along with font and music asset support for compositing content. It is structured with a src directory, unit testing via pytest, and dependency management through requirements.txt. Content creators, marketers, and developers looking to schedule or batch-publish AI-generated media will find this skill useful for building automated social pipelines.
Activate the virtual environment with `source .venv/bin/activate`, then install dependencies using `pip install -r requirements.txt`. Run tests from the project root with `PYTHONPATH=src pytest src/tests`. Save any new dependencies back to the requirements file using `pip freeze > requirements.txt`.
Automatically upload AI-generated images to Instagram on a recurring basis
Post AI-generated video content to TikTok without manual intervention
Batch-generate and publish social media content using DALL-E or Sora
Overlay custom text and music onto generated media before publishing
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/PatrickMihalcea/SocialMediaAutomationCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a Python script to automate uploading media to [PLATFORM] for [COMPANY]. The script should handle [NUMBER] posts per day, with captions from [CAPTION_SOURCE] and images/videos from [MEDIA_FOLDER]. Ensure it complies with [PLATFORM]'s API guidelines and includes error handling for failed uploads.
# Instagram Automation Script
```python
import os
import schedule
import time
from instagrapi import Client
# Initialize client
cl = Client()
cl.login("username", "password")
# Upload media
def upload_media():
media_folder = "/path/to/media"
for filename in os.listdir(media_folder):
if filename.endswith(".jpg") or filename.endswith(".mp4"):
cl.photo_upload(
f"{media_folder}/{filename}",
f"#AutomatedPost #{os.getenv('HASHTAG')}"
)
# Schedule uploads
schedule.every().day.at("14:00").do(upload_media)
# Keep script running
while True:
schedule.run_pending()
time.sleep(1)
```Your one-stop shop for church and ministry supplies.
Automate your browser workflows effortlessly
IronCalc is a spreadsheet engine and ecosystem
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan