Establishes an API connection to Twitter using Tweepy and retweet tweets based on criteria
First, installation of dependencies
pipenv install
pipenv sync
Second, configuration of configuration file, edit credentials.py
vim configuration/credentatials.py
The best is to use a crontab
0 */2 * * * python3 /home/av1m/rtbot/retweet.py > /dev/null 2>&1
We can directly launch it from a terminal (python3 retweet.py
)
Note that it is possible to use the Logger
class to retrieve the results by mail/sms/file