Skip to content

🐦 A Twitter retweet bot using Twitter API and Tweepy built with Python. Supports multiple keywords/hashtags.

License

Notifications You must be signed in to change notification settings

Xtremilicious/twitter-retweet-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter-Retweet-Bot

A Twitter retweet bot using Twitter API and Tweepy built with Python. Supports multiple keywords/hashtags.

What You Need & Need to Know

Setup

Install all dependencies

pip install -r requirements.txt

Creates a .env file with all environment variables like the .env.example file.

Instructions

  • Out of general OS hygiene, create a new directory to contain all of your retweet bot files.

mkdir retweet-bot

  • Create a new Twitter Application. This is where you'll generate your keys, tokens, and secrets.
  • Fill in your keys, tokens, and secrets in the .env file.
  • Check comments in retweet.py to tweak the retweet bot to your liking.
  • The example demonstrates a single hashtag value, but you can tweak the code to search multiple hashtags. Example:

q='%23art%20OR%20%23music' will search #art OR #music

  • Run your retweet.py script. Enjoy!

python retweet.py

Additional Information

  • Note: Make sure that your retweet.py and .env files are, obviously, in the same directory.
  • Create a Cron Job or use Task Scheduler to automate this script.
  • Use Heroku for hosting the scripts and assign a dyno to run this script continuously.
  • Consider using a Raspberry Pi to host your retweet bot, so it's always on and always running. :)

About

🐦 A Twitter retweet bot using Twitter API and Tweepy built with Python. Supports multiple keywords/hashtags.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published