Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suleman-elahi/twitterautoreplybot
This is a tiny Python script that replies to a specified number of tweets containing a specified hashtag.
https://github.com/suleman-elahi/twitterautoreplybot
bot python python3 tweepy tweets twitter twitter-api twitter-bot
Last synced: 3 months ago
JSON representation
This is a tiny Python script that replies to a specified number of tweets containing a specified hashtag.
- Host: GitHub
- URL: https://github.com/suleman-elahi/twitterautoreplybot
- Owner: Suleman-Elahi
- Created: 2017-12-08T09:03:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-17T06:45:30.000Z (over 1 year ago)
- Last Synced: 2023-05-17T09:02:35.768Z (over 1 year ago)
- Topics: bot, python, python3, tweepy, tweets, twitter, twitter-api, twitter-bot
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 35
- Watchers: 1
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TwitterAutoReplyBot
This is a tiny Python script that replies to specified number of tweets containing a specified hashtag.This Twitter bot uses Tweepy, a Python module to deal with the Twitter API.
Successfully tested and ran with Python38, running on Windows 11.
Run as a cron job or via Task Scheduler to automatically reply to certain tweets of your interest.
## Update 2021 :
>Added functioanlity to use random tweet for reply from a text file.
Now, you can define the tweets in "tweets.txt" file and start the bot.
Also prevents replyign to same tweet again and again. Works with Tweepy v4.
### Todo
> Add a GUI for simplicity.....## Running:
1. Open Terminal or Command Prompt(cmd.exe) or PowerShell. Make sure `git` is installed.
2. `git clone https://github.com/Suleman-Elahi/TwitterAutoReplyBot && cd TwitterAutoReplyBot`
3. `pip3 install tweepy`
4. Enter the Twitter keys in `bot.py` file at lines 7-10.
5. Customize the hashtag, number of tweets to reply to, and tweets type to fetch at line 11-13 of "bot.py".
6. Define the tweets in each line of the text file, `tweets.txt`.
7. Run as: `python bot.py` or `python3 bot.py`