finds.dev← search

// the find

rhiever/TwitterFollowBot

★ 1,334 · Python · GPL-3.0 · updated Sep 2022

A Python bot that automates several actions on Twitter, such as following users and favoriting tweets.

A Python bot for automating Twitter follow/unfollow/favorite/retweet actions, built on the v1 Twitter API via python-twitter. The author has publicly archived it because Twitter began banning accounts that use it. It's a historical reference at this point, not something to actually deploy.

The API is clean and readable — each action is a single method call with sensible defaults. Local caching of follower lists to work around rate limits is the right design. Supporting multiple bot instances via separate config files is a nice touch for anyone running multiple accounts. The code is simple enough to use as a starting point for building on the current Twitter/X API.

Twitter's v1.1 API is shut down, so none of this works without a paid API tier and significant rewriting. The python-twitter dependency it relies on is itself largely abandoned. No tests, no retry logic beyond the backoff parameters, and error handling appears to be minimal throughout. The author explicitly warns you can get banned using it, and that warning is now even more relevant given X's aggressive enforcement against automation.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →