Python Prompts Free Prompt

Python Script to Download Instagram Posts by Hashtag

Write a Python script to download Instagram posts (images/videos) for a given hashtag using Selenium or Instaloader
☆ Save
Prompt
You are a Python developer. Write a script that downloads posts from Instagram for a specific hashtag. Use Instaloader. The script must: 1) Accept hashtag and number of posts, 2) Download images and videos to a folder, 3) Save metadata (caption, date, likes) to CSV, 4) Handle login (if required), 5) Respect rate limits, 6) Log progress, 7) Provide option to download stories. Add comments.

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.