Meet the bot @getmethistweet.
It uses the Twitter API to to help you save threads more easily. Just tag the bot as reply to the tweet which u need it to direct message. This project is awesome...
BFH/reciJV3XlF0HW5cly/2021
[link to video]
- Get Me Tweet App is a Twitter bot which save the tweets in the Inbox as direct messages.
- The Massage settings in Twitter should be changed before using the bot.
- The user has to just tag the bot as a reply to the tweet which the user would like to save for later reference.The bot also favourites the user's tweet.
Tweepy - 3.10.0
- Tweepy, an easy-to-use Python library for accessing the Twitter API.
- Make a Twitter Developer Account and make sure you fully understand Twitter's Rules on Automation!
- You need to have a Heroku Account.
- The first step is to clone this repository which will contain the bot files and then create a virtual environment:
$ git clone https://github.com/athiratj/tweet-thread-saver.git $ cd tweet-thread-saver $ python3 -m venv venv
- Activate the newly created virtual environment and then use pip to install Tweepy package:
$ source venv/bin/activate $ pip install tweepy
- 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 credentials.py file:
OAuthHandler='CONSUMER_KEY' OAuthHandler_2='CONSUMER_SECRET' set_access_token='ACCESS_TOKEN' set_access_token_2='ACCESS_TOKEN_SECRET'
- Run the getmethistweet.py script using command
python3 givemethistweet.py
- If the script runs without any errors it can be deployed on Heroku.
- Once deployment is done your Twitter bot is good to go!:sunglasses: