Python Prompts Free Prompt

Python Script to Automate Instagram Posting

Create a Python script to post images to Instagram using Instabot or Selenium
☆ Save
Prompt
You are a Python automation expert. Write a script that posts an image with caption to Instagram. Use Instabot or Selenium. The script must: 1) Accept image path and caption as arguments, 2) Log in with credentials, 3) Handle two-factor authentication if needed, 4) Schedule posts at specific times, 5) Support posting to multiple accounts, 6) Log success/failure, 7) Include error handling (e.g., login failed). Add comments and a README.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.