Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xtremilicious/twitter-retweet-bot
:bird: A Twitter retweet bot using Twitter API and Tweepy built with Python. Supports multiple keywords/hashtags.
https://github.com/xtremilicious/twitter-retweet-bot
automation bot python python3 retweet retweet-bot twitter twitter-api twitter-bot twitter-retweet-bot
Last synced: about 1 month ago
JSON representation
:bird: A Twitter retweet bot using Twitter API and Tweepy built with Python. Supports multiple keywords/hashtags.
- Host: GitHub
- URL: https://github.com/xtremilicious/twitter-retweet-bot
- Owner: Xtremilicious
- License: mit
- Created: 2020-02-22T13:56:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-27T08:56:33.000Z (over 2 years ago)
- Last Synced: 2024-10-19T07:51:11.223Z (3 months ago)
- Topics: automation, bot, python, python3, retweet, retweet-bot, twitter, twitter-api, twitter-bot, twitter-retweet-bot
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 28
- Watchers: 4
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
----------* [Tweepy](http://www.tweepy.org/) - An easy-to-use Python library for accessing the Twitter API.
* Make sure you fully understand [Twitter's Rules on Automation](https://support.twitter.com/articles/76915). Play nice. Don't spam!
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](https://apps.twitter.com). 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](https://code.tutsplus.com/tutorials/scheduling-tasks-with-cron-jobs--net-8800) or use [Task Scheduler](https://technet.microsoft.com/en-us/library/cc748993(v=ws.11).aspx) 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. :)