/libtechgenderbot

Retweets tweets mentioning #libtechgender. Supports Twitter API v1.1.

Primary LanguagePythonMozilla Public License 2.0MPL-2.0

Python Retweet Bot

This script retweets all Tweets containing your search term. To limit Twitter requests a savepoint file marks Tweets found before. It's Twitter API v1.1 ready.

How to start:

  • Depends on http://tweepy.github.com/ (pip install tweepy)
  • Copy 'config.sample' to 'config'
  • Define your hashtag or search query in config
  • Add your Twitter app credentials in config
  • (Tune some other options if you like)
  • $ python retweet.py
  • Add this call to your crontab (or something similar) to retweet all new tweets regularly

More info:

  • I've left the bot uncustomized, here on GitHub, mostly. Obviously, I'm not pushing up my config file, but I do have a user blacklist, which the original did not. So you can fork from here pretty safely, as of now, or work from the original--whichever you prefer. I'll update this bullet point when I make future changes.
  • Directions for crontab on a Mac, though if you aren't on Yosemite, launchd is preferred