- python 3
- tweepy
- X/twitter api credentials
- clone the repository
- install the dependencies (python 3 and
pip install tweepy) - fill in with your api credentials inside the file
dhammapada_tweet_bot_credentials.py - rename the file
dhammapada_tweet_bot_credentials.pytosecrets_xapi.py - run via crontab the script
dhammapada-tweet-bot.py; you can follow the example below.
0 */6 * * * /home/USERNAME/.venv/bin/python /home/USERNAME/cronjobs/dhammapada-tweet-bot/dhammapada-tweet-bot.py
First is the path to the python executable, then the script.
This would run it at 0h, 6h, 12h and 18h.
You can run the script manually to test the credentials:
python ./dhammapada-tweet-bot.py