Skip to content

DomainWarrior/tweet_bot

Repository files navigation

tweet_bot

Python Twitter automation bot — auto-tweet, auto-follow, auto-retweet, and more.

Python Tweepy License

Note: Built against Twitter API v1.1. Twitter deprecated free v1.1 access in 2023 — a Twitter developer account with Elevated or Basic access is now required.


Features

  • Auto-tweet on a timer
  • Auto-follow back followers
  • Tweet from a text file (skips duplicates)
  • Auto favorite & retweet by hashtag
  • Auto-reply when mentioned

Setup

1. Get API credentials

Create an app at developer.twitter.com and copy your keys.

2. Configure environment

cp .env.example .env
# Fill in your Twitter keys in .env

3. Install & run

pip install tweepy python-dotenv
python main.py

Project structure

File Purpose
credentials.py Loads API keys from env vars
config.py Creates authenticated Tweepy API instance
main.py Entry point
autotweet.py Scheduled tweeting
autoreply.py Mention auto-reply
favretweet.py Auto like & retweet by hashtag
followingfollowers.py Auto follow-back
.env.example Credential template

License

MIT © DomainWarrior

About

Tweet bot's features: Auto tweet set timer and let it go (you may get banned for constantly spamming so dont change the timer unless you accept that) Auto tweets from a text file and checks for duplicate tweet and skips if it is a duplicate (it goes to the next available string) Auto Follow Followers (follows all users that follows this account)…

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages