A Twitter bot written in Python using Tweepy
Twitter Like and Retweet Bot
A Twitter bot written in Python using Tweepy and hosted on a server. It will like and/or retweet tweets that contain single or multiple keywords and hashtags.
Instructions
-
Apply for Twitter Developer Access with the account you want the bot to be used for.
-
Create a new Twitter Application to generate your private keys, secrets, and tokens.
- Make sure the app settings has Read and Write permissions.
- Create a file named
credentials.py
to hold the private information using the format below.- See File Structure for where the file should be placed.
TWITTER_API_KEY="xxxx"
TWITTER_API_KEY_SECRET="xxxx"
TWITTER_ACCESS_TOKEN="xxxx"
TWITTER_ACCESS_TOKEN_SECRET="xxxx"
-
Adjustments you can