Python Prompts Free Prompt

Python Script to Automate Twitter Bot (Retweet, Like)

Create a Python script that automates Twitter actions like retweeting and liking based on keywords
☆ Save
Prompt
You are a Python developer. Write a script using Tweepy that searches for tweets containing specific keywords and automatically retweets or likes them. The script must: 1) Accept keywords and actions (retweet, like), 2) Run continuously with delay, 3) Avoid duplicate actions, 4) Log actions, 5) Handle rate limits, 6) Use environment variables for API keys, 7) Provide a simple web interface to monitor (optional). 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.